Searched refs:exponent (Results 1 - 25 of 66) sorted by relevance

123

/xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
H A Dquerymatrix.h36 _mesa_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]);
H A Dquerymatrix.c27 * GLint exponent[16] )
29 * format. exponent[16] contains the unbiased exponents applied to the
31 * is close to mantissa[i] * 2^exponent[i]. The function returns a status
43 _mesa_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]) argument
110 exponent[i] = (GLint) exp;
125 exponent[i] = (GLint) 0;
139 exponent[i] = (GLint) 0;
148 exponent[i] = (GLint) 0;
/xsrc/external/mit/MesaLib/dist/src/mesa/main/
H A Dquerymatrix.h36 _mesa_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]);
H A Dquerymatrix.c27 * GLint exponent[16] )
29 * format. exponent[16] contains the unbiased exponents applied to the
31 * is close to mantissa[i] * 2^exponent[i]. The function returns a status
43 _mesa_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]) argument
110 exponent[i] = (GLint) exp;
125 exponent[i] = (GLint) 0;
139 exponent[i] = (GLint) 0;
148 exponent[i] = (GLint) 0;
/xsrc/external/mit/MesaLib.old/dist/src/util/
H A Dformat_r11g11b10f.h64 /* Map exponent to the range [-127,128] */
65 int exponent = ((f32.ui >> 23) & 0xff) - 127; local in function:f32_to_uf11
68 if (exponent == 128) { /* Infinity or NaN */
92 } else if (exponent > -15) { /* Representable value */
93 exponent += UF11_EXPONENT_BIAS;
95 uf11 = exponent << UF11_EXPONENT_SHIFT | mantissa;
108 int exponent = (val & 0x07c0) >> UF11_EXPONENT_SHIFT; local in function:uf11_to_f32
113 if (exponent == 0) {
118 } else if (exponent == 31) {
122 exponent
147 int exponent = ((f32.ui >> 23) & 0xff) - 127; local in function:f32_to_uf10
190 int exponent = (val & 0x03e0) >> UF10_EXPONENT_SHIFT; local in function:uf10_to_f32
[all...]
H A Dfast_idiv_by_const.c105 /* Begin a loop that increments the exponent, until we find a power of 2
108 unsigned exponent; local in function:util_compute_fast_udiv_info
109 for (exponent = 0; ; exponent++) {
110 /* Quotient and remainder is from previous exponent; compute it for this
111 * exponent.
123 /* We're done if this exponent works for the round_up algorithm.
124 * Note that exponent may be larger than the maximum shift supported,
127 if ((exponent + extra_shift >= ceil_log_2_D) ||
128 (D - remainder) <= ((uint64_t)1 << (exponent
197 unsigned exponent = SINT_BITS - 1; local in function:util_compute_fast_sdiv_info
[all...]
H A Dformat_rgb9e5.h73 * the exponent after the fact do it here by doing the equivalent of +0.5 -
74 * the int add will spill over into the exponent in this case.
86 * must match what is done above for figuring out exponent).
109 int exponent; local in function:rgb9e5_to_float3
112 exponent = (rgb >> 27) - RGB9E5_EXP_BIAS - RGB9E5_MANTISSA_BITS;
113 scale.u = (exponent + 127) << 23;
/xsrc/external/mit/MesaLib.old/dist/src/intel/compiler/
H A Dbrw_packed_float.c30 unsigned exponent:8; member in struct:fu::__anon1dec7bb60108
45 unsigned exponent = fu.s.exponent - (127 - 3); local in function:brw_float_to_vf
46 unsigned vf = (fu.s.sign << 7) | (exponent << 4) | mantissa;
52 /* Make sure the mantissa fits in 4-bits and the exponent in 3-bits. */
53 if (fu.u & 0x7ffff || exponent > 7)
71 fu.s.exponent = ((vf & 0x70) >> 4) + (127 - 3);
/xsrc/external/mit/MesaLib/dist/src/intel/compiler/
H A Dbrw_packed_float.c30 unsigned exponent:8; member in struct:fu::__anon8c8a44690108
45 unsigned exponent = fu.s.exponent - (127 - 3); local in function:brw_float_to_vf
46 unsigned vf = (fu.s.sign << 7) | (exponent << 4) | mantissa;
52 /* Make sure the mantissa fits in 4-bits and the exponent in 3-bits. */
53 if (fu.u & 0x7ffff || exponent > 7)
71 fu.s.exponent = ((vf & 0x70) >> 4) + (127 - 3);
/xsrc/external/mit/MesaLib/dist/src/util/
H A Dformat_r11g11b10f.h64 /* Map exponent to the range [-127,128] */
65 int exponent = ((f32.ui >> 23) & 0xff) - 127; local in function:f32_to_uf11
68 if (exponent == 128) { /* Infinity or NaN */
92 } else if (exponent > -15) { /* Representable value */
93 exponent += UF11_EXPONENT_BIAS;
95 uf11 = exponent << UF11_EXPONENT_SHIFT | mantissa;
108 int exponent = (val & 0x07c0) >> UF11_EXPONENT_SHIFT; local in function:uf11_to_f32
113 if (exponent == 0) {
118 } else if (exponent == 31) {
122 exponent
147 int exponent = ((f32.ui >> 23) & 0xff) - 127; local in function:f32_to_uf10
190 int exponent = (val & 0x03e0) >> UF10_EXPONENT_SHIFT; local in function:uf10_to_f32
[all...]
H A Dfast_idiv_by_const.c105 /* Begin a loop that increments the exponent, until we find a power of 2
108 unsigned exponent; local in function:util_compute_fast_udiv_info
109 for (exponent = 0; ; exponent++) {
110 /* Quotient and remainder is from previous exponent; compute it for this
111 * exponent.
123 /* We're done if this exponent works for the round_up algorithm.
124 * Note that exponent may be larger than the maximum shift supported,
127 if ((exponent + extra_shift >= ceil_log_2_D) ||
128 (D - remainder) <= ((uint64_t)1 << (exponent
197 unsigned exponent = SINT_BITS - 1; local in function:util_compute_fast_sdiv_info
[all...]
H A Dformat_rgb9e5.h73 * the exponent after the fact do it here by doing the equivalent of +0.5 -
74 * the int add will spill over into the exponent in this case.
86 * must match what is done above for figuring out exponent).
109 int exponent; local in function:rgb9e5_to_float3
112 exponent = (rgb >> 27) - RGB9E5_EXP_BIAS - RGB9E5_MANTISSA_BITS;
113 scale.u = (exponent + 127) << 23;
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/
H A Dradeon_inline_literals.c40 * 30:23 exponent
45 * 3:6 exponent (bias 7)
54 int exponent = biased_exponent - 127; local in function:ieee_754_to_r300_float
59 DBG("Raw exponent = %d\n", exponent);
61 if (exponent < -7 || exponent > 8) {
62 DBG("Failed exponent out of range\n\n");
74 r300_exponent = exponent + 7;
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/
H A Dradeon_inline_literals.c40 * 30:23 exponent
45 * 3:6 exponent (bias 7)
54 int exponent = biased_exponent - 127; local in function:ieee_754_to_r300_float
59 DBG("Raw exponent = %d\n", exponent);
61 if (exponent < -7 || exponent > 8) {
62 DBG("Failed exponent out of range\n\n");
74 r300_exponent = exponent + 7;
/xsrc/external/mit/MesaLib/dist/src/compiler/nir/
H A Dnir_lower_frexp.c43 * 5 exponent bits;
46 * An exponent shift of 10 will shift the mantissa out, leaving only the
47 * exponent and sign bit (which itself may be zero, if the absolute value
57 * 8 exponent bits;
60 * An exponent shift of 23 will shift the mantissa out, leaving only the
61 * exponent and sign bit (which itself may be zero, if the absolute value
71 * 11 exponent bits;
74 * An exponent shift of 20 will shift the remaining mantissa bits out,
75 * leaving only the exponent and sign bit (which itself may be zero, if
87 /* We only need to deal with the exponent s
125 nir_ssa_def *exponent; local in function:lower_frexp_exp
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
H A Dnir_lower_frexp.c44 * 5 exponent bits;
47 * An exponent shift of 10 will shift the mantissa out, leaving only the
48 * exponent and sign bit (which itself may be zero, if the absolute value
58 * 8 exponent bits;
61 * An exponent shift of 23 will shift the mantissa out, leaving only the
62 * exponent and sign bit (which itself may be zero, if the absolute value
72 * 11 exponent bits;
75 * An exponent shift of 20 will shift the remaining mantissa bits out,
76 * leaving only the exponent and sign bit (which itself may be zero, if
88 /* We only need to deal with the exponent s
113 nir_ssa_def *exponent; local in function:lower_frexp_exp
[all...]
/xsrc/external/mit/mesa-demos/dist/src/egl/opengles1/
H A Dtri.c143 GLint exponent[16]; local in function:test_query_matrix
150 rv = (*procQueryMatrixx)(mantissa, exponent);
156 printf("matrix[%d] = %f * 2^(%d)\n", i, mantissa[i]/65536.0, exponent[i]);
/xsrc/external/mit/xcalc/dist/
H A Dmath.c62 static int exponent=0; variable in typeref:typename:int
220 char *estr = index(dispstr,'e'); /* search for exponent part */
224 if (strlen(estr) <= 4) /* leftmost 8 chars plus exponent */
226 else /* leftmost 7 chars plus exponent */
314 exponent=Dpoint=0;
430 if (!exponent) {
433 exponent=strlen(dispstr)-1; /* where the '-' goes */
448 exponent=Dpoint=0;
459 if (exponent) { /* neg the exponent */
[all...]
/xsrc/external/mit/freetype/dist/src/cff/
H A Dcffparse.c256 FT_Long result, number, exponent; local in function:cff_parse_real
267 exponent = 0;
299 /* Increase exponent if we can't add the digit. */
343 /* Read exponent, if any. */
371 /* Arbitrarily limit exponent. */
372 if ( exponent > 1000 )
375 exponent = exponent * 10 + nib;
379 exponent = -exponent;
[all...]
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/nouveau/codegen/lib/
H A Dgk110.asm101 // Step 1: classify input according to exponent and value, and calculate
102 // result for 0/inf/nan. $r2 holds the exponent value, which starts at
107 // We want to check whether the exponent is 0 or 0x7ff (i.e. NaN, inf,
108 // denorm, or 0). Do this by substracting 1 from the exponent, which will
125 // Other values with nonzero in exponent field should be inf
148 // range [1, 2) by setting exponent field to 0x3ff (the exponent of 1)
149 // result in $r6d. The exponent will be recovered later.
184 // The exponent is recovered by adding what we added to the exponent
[all...]
H A Dgm107.asm114 // Step 1: classify input according to exponent and value, and calculate
115 // result for 0/inf/nan. $r2 holds the exponent value, which starts at
121 // We want to check whether the exponent is 0 or 0x7ff (i.e. NaN, inf,
122 // denorm, or 0). Do this by substracting 1 from the exponent, which will
143 // Other values with nonzero in exponent field should be inf
171 // range [1, 2) by setting exponent field to 0x3ff (the exponent of 1)
172 // result in $r6d. The exponent will be recovered later.
211 // The exponent is recovered by adding what we added to the exponent
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/nouveau/codegen/lib/
H A Dgk110.asm101 // Step 1: classify input according to exponent and value, and calculate
102 // result for 0/inf/nan. $r2 holds the exponent value, which starts at
107 // We want to check whether the exponent is 0 or 0x7ff (i.e. NaN, inf,
108 // denorm, or 0). Do this by subtracting 1 from the exponent, which will
125 // Other values with nonzero in exponent field should be inf
148 // range [1, 2) by setting exponent field to 0x3ff (the exponent of 1)
149 // result in $r6d. The exponent will be recovered later.
184 // The exponent is recovered by adding what we added to the exponent
[all...]
H A Dgm107.asm114 // Step 1: classify input according to exponent and value, and calculate
115 // result for 0/inf/nan. $r2 holds the exponent value, which starts at
121 // We want to check whether the exponent is 0 or 0x7ff (i.e. NaN, inf,
122 // denorm, or 0). Do this by subtracting 1 from the exponent, which will
143 // Other values with nonzero in exponent field should be inf
171 // range [1, 2) by setting exponent field to 0x3ff (the exponent of 1)
172 // result in $r6d. The exponent will be recovered later.
211 // The exponent is recovered by adding what we added to the exponent
[all...]
/xsrc/external/mit/freetype/dist/src/psaux/
H A Dpsconv.c273 /* read exponent, if any */
276 FT_Long exponent; local in function:PS_Conv_ToFixed
282 exponent = PS_Conv_ToInt( &p, limit );
287 /* arbitrarily limit exponent */
288 if ( exponent > 1000 )
290 else if ( exponent < -1000 )
293 power_ten += exponent;
/xsrc/external/mit/MesaLib.old/dist/src/gallium/docs/source/
H A Dformat.rst35 each of red green and blue mantissa, with a shared five bit exponent.
36 ``R11G11B10_FLOAT`` is five bits of exponent and five or six bits of mantissa

Completed in 27 milliseconds

123