Lines Matching defs:exp
5336 uint64_t exp = (u >> 10) & 0x1F;
5338 if (exp == 0x1F) { // Infinity or NaN.
5339 exp = 2047;
5340 } else if (exp != 0) { // Normal.
5341 exp += 1008; // 1008 = 1023 - 15, the difference in biases.
5344 exp = 1062 - clz; // 1062 = 1008 + 64 - 10.
5349 v |= (exp << 52) | (man << 42);
13105 uint64_t exp = u >> 52;
13108 if (exp == 0x7FF) {
13123 } else if (exp > 0x40E) { // Truncate to the largest finite f16.
13129 } else if (exp <= 0x3E6) { // Truncate to zero.
13135 } else if (exp <= 0x3F0) { // Normal f64, subnormal f16.
13139 uint32_t shift = ((uint32_t)(1051 - exp)); // 1051 = 0x3F0 + 53 - 10.
13150 exp = (exp - 1008) << 10; // 1008 = 1023 - 15 = 0x3FF - 0xF.
13156 ret.value = neg | ((uint16_t)exp) | ((uint16_t)(man >> 42));
13169 uint64_t exp = u >> 52;
13172 if (exp == 0x7FF) {
13187 } else if (exp > 0x47E) { // Truncate to the largest finite f32.
13193 } else if (exp <= 0x369) { // Truncate to zero.
13199 } else if (exp <= 0x380) { // Normal f64, subnormal f32.
13203 uint32_t shift = ((uint32_t)(926 - exp)); // 926 = 0x380 + 53 - 23.
13214 exp = (exp - 896) << 23; // 896 = 1023 - 127 = 0x3FF - 0x7F.
13220 ret.value = neg | ((uint32_t)exp) | ((uint32_t)(man >> 29));
13517 int32_t exp = 0;
13528 if (exp < exp_large) {
13529 exp = (10 * exp) + ((int32_t)(*p - '0'));
13538 dp += exp_sign * exp;
14852 int32_t exp = 0;
14854 exp = h->decimal_point - 1;
14856 bool negative_exp = exp < 0;
14858 exp = -exp;
14868 n += (exp < 100) ? 2 : 3;
14913 if (exp < 10) {
14915 *ptr++ = (uint8_t)('0' | exp);
14916 } else if (exp < 100) {
14917 *ptr++ = (uint8_t)('0' | (exp / 10));
14918 *ptr++ = (uint8_t)('0' | (exp % 10));
14920 int32_t e = exp / 100;
14921 exp -= e * 100;
14923 *ptr++ = (uint8_t)('0' | (exp / 10));
14924 *ptr++ = (uint8_t)('0' | (exp % 10));