Searched refs:expbits (Results 1 - 3 of 3) sorted by relevance

/external/fio/lib/
H A Dieee754.c11 uint64_t pack754(long double f, unsigned bits, unsigned expbits) argument
16 unsigned significandbits = bits - expbits - 1; // -1 for sign bit
47 exp = shift + ((1 << (expbits - 1)) - 1); // shift + bias
50 return (sign << (bits - 1)) | (exp << (bits-expbits - 1)) | significand;
53 long double unpack754(uint64_t i, unsigned bits, unsigned expbits) argument
58 unsigned significandbits = bits - expbits - 1; // -1 for sign bit
69 bias = (1 << (expbits - 1)) - 1;
70 shift = ((i >> significandbits) & ((1LL << expbits) - 1)) - bias;
H A Dieee754.h6 extern uint64_t pack754(long double f, unsigned bits, unsigned expbits);
7 extern long double unpack754(uint64_t i, unsigned bits, unsigned expbits);
/external/ltp/testcases/kernel/fs/doio/
H A Ddatabin.c87 long expbits; local
98 expbits = 0x55;
102 expbits = 0xf0;
107 expbits = ((offset + cnt) % 8 & 0177);
109 if (buffer[cnt] != expbits) {
112 offset + cnt, expbits, buffer[cnt]);
120 expbits = 0xff;
124 expbits = 0;
134 if (actbits != expbits) {
137 offset + cnt, expbits, actbit
[all...]

Completed in 307 milliseconds