Searched refs:mantissa (Results 1 - 25 of 64) sorted by relevance

123

/external/chromium_org/third_party/skia/experimental/Intersection/
H A DIntersectionUtilities.cpp11 // get sign, exponent, mantissa from double
12 // Translate the double into sign, exponent and mantissa.
17 long mantissa = bits & 0xfffffffffffffL;
20 // but there's no extra normalisation bit in the mantissa
26 // bit to the front of the mantissa
29 mantissa = mantissa | (1L<<52);
33 // treating the mantissa as m.0 rather than 0.m, so we need
37 if (mantissa == 0)
43 while((mantissa
[all...]
H A DDataTypes.cpp44 uint32_t mantissa : 23; member in struct:Float_t::__anon15021
/external/skia/experimental/Intersection/
H A DIntersectionUtilities.cpp11 // get sign, exponent, mantissa from double
12 // Translate the double into sign, exponent and mantissa.
17 long mantissa = bits & 0xfffffffffffffL;
20 // but there's no extra normalisation bit in the mantissa
26 // bit to the front of the mantissa
29 mantissa = mantissa | (1L<<52);
33 // treating the mantissa as m.0 rather than 0.m, so we need
37 if (mantissa == 0)
43 while((mantissa
[all...]
H A DDataTypes.cpp44 uint32_t mantissa : 23; member in struct:Float_t::__anon30435
/external/deqp/framework/delibs/debase/
H A DdeFloat16.c32 int mantissa; local
42 mantissa = x.i & 0x007fffff;
53 mantissa = mantissa | 0x00800000;
55 /* Round mantissa to nearest (10+e) */
59 int b = (mantissa >> t) & 1;
61 mantissa = (mantissa + a + b) >> t;
64 return (deFloat16) (sign | mantissa);
68 if (mantissa
106 int mantissa; local
[all...]
/external/nanopb-c/examples/using_double_on_avr/
H A Ddouble_conversion.c22 uint64_t mantissa; local
27 mantissa = in.i & 0x7FFFFF;
36 if (!mantissa)
44 mantissa <<= 1;
45 while (!(mantissa & 0x800000))
47 mantissa <<= 1;
50 mantissa &= 0x7FFFFF;
55 mantissa <<= 29;
56 mantissa |= (uint64_t)(exponent + 1023) << 52;
57 mantissa |
66 uint32_t mantissa; local
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_format_r11g11b10f.h61 int mantissa = f32.ui & 0x007fffff; local
71 if (mantissa) {
90 mantissa >>= UF11_MANTISSA_SHIFT;
91 uf11 = exponent << UF11_EXPONENT_SHIFT | mantissa;
105 int mantissa = (val & 0x003f); local
110 if (mantissa != 0) {
112 f32.f = scale * mantissa;
116 f32.ui = F32_INFINITY | mantissa;
127 decimal = 1.0f + (float) mantissa / 64;
147 int mantissa local
191 int mantissa = (val & 0x001f); local
[all...]
H A Du_format_rgb9e5.h50 unsigned int mantissa:23; member in struct:__anon13774::__anon13775
52 unsigned int mantissa:23;
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_format_r11g11b10f.h61 int mantissa = f32.ui & 0x007fffff; local
71 if (mantissa) {
90 mantissa >>= UF11_MANTISSA_SHIFT;
91 uf11 = exponent << UF11_EXPONENT_SHIFT | mantissa;
105 int mantissa = (val & 0x003f); local
110 if (mantissa != 0) {
112 f32.f = scale * mantissa;
116 f32.ui = F32_INFINITY | mantissa;
127 decimal = 1.0f + (float) mantissa / 64;
147 int mantissa local
191 int mantissa = (val & 0x001f); local
[all...]
H A Du_format_rgb9e5.h50 unsigned int mantissa:23; member in struct:__anon27185::__anon27186
52 unsigned int mantissa:23;
/external/chromium_org/third_party/mesa/src/src/mesa/main/
H A Dquerymatrix.c24 * GLbitfield glQueryMatrixxOES( GLfixed mantissa[16],
26 * mantissa[16] contains the contents of the current matrix in GLfixed
29 * is close to mantissa[i] * 2^exponent[i]. The function returns a status
93 extern GLbitfield GL_APIENTRY _es_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]);
99 GLbitfield GL_APIENTRY _es_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]) argument
166 mantissa[i] = FLOAT_TO_FIXED(normalizedFraction);
181 mantissa[i] = INT_TO_FIXED(0);
191 mantissa[i] = INT_TO_FIXED(1);
194 mantissa[i] = -INT_TO_FIXED(1);
204 mantissa[
[all...]
/external/mesa3d/src/mesa/main/
H A Dquerymatrix.c24 * GLbitfield glQueryMatrixxOES( GLfixed mantissa[16],
26 * mantissa[16] contains the contents of the current matrix in GLfixed
29 * is close to mantissa[i] * 2^exponent[i]. The function returns a status
91 extern GLbitfield GL_APIENTRY _es_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]);
97 GLbitfield GL_APIENTRY _es_QueryMatrixxOES(GLfixed mantissa[16], GLint exponent[16]) argument
164 mantissa[i] = FLOAT_TO_FIXED(normalizedFraction);
179 mantissa[i] = INT_TO_FIXED(0);
189 mantissa[i] = INT_TO_FIXED(1);
192 mantissa[i] = -INT_TO_FIXED(1);
202 mantissa[
[all...]
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/
H A Dfloatnum.c43 * Sign exponent mantissa (80 bits)
51 /*@only@*/ wordptr mantissa; /* Allocated to MANT_BITS bits */ member in struct:yasm_floatnum
78 unsigned char mantissa[MANT_BYTES]; /* little endian mantissa */ member in struct:POT_Entry_Source_s
145 /* Initialize mantissa */
146 e->f.mantissa = BitVector_Create(MANT_BITS, FALSE);
147 BitVector_Block_Store(e->f.mantissa, s->mantissa, MANT_BYTES);
201 BitVector_Destroy(POT_TableN[i].f.mantissa);
202 BitVector_Destroy(POT_TableP[i].f.mantissa);
[all...]
/external/valgrind/main/VEX/switchback/
H A Dtest_emfloat.c514 u16 mantissa[INTERNAL_FPF_PRECISION]; member in struct:__anon32331
533 static void ShiftMantLeft1(u16 *carry,u16 *mantissa);
534 static void ShiftMantRight1(u16 *carry,u16 *mantissa);
701 dest->mantissa[i]=0;
721 dest->mantissa[i]=0;
730 ** as the mantissa bits go.
739 dest->mantissa[0]=0x4000;
741 dest->mantissa[i]=0;
750 ** number's mantissa. It checks for an all-zero mantissa
816 ShiftMantLeft1(u16 *carry, u16 *mantissa) argument
841 ShiftMantRight1(u16 *carry, u16 *mantissa) argument
873 u16 *mantissa; local
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/
H A Dradeon_inline_literals.c14 * 22:0 mantissa
19 * 0:2 mantissa
26 unsigned mantissa = float_bits & 0x007fffff; local
41 if (mantissa & mantissa_mask) {
44 mantissa, mantissa_mask,
45 mantissa & mantissa_mask);
50 r300_mantissa = (mantissa & ~mantissa_mask) >> 20;
/external/mesa3d/src/gallium/drivers/r300/compiler/
H A Dradeon_inline_literals.c14 * 22:0 mantissa
19 * 0:2 mantissa
26 unsigned mantissa = float_bits & 0x007fffff; local
41 if (mantissa & mantissa_mask) {
44 mantissa, mantissa_mask,
45 mantissa & mantissa_mask);
50 r300_mantissa = (mantissa & ~mantissa_mask) >> 20;
/external/chromium_org/third_party/angle/src/common/
H A Dmathutil.h161 unsigned int mantissa = (abs & 0x007FFFFF) | 0x00800000; local
166 abs = mantissa >> e;
327 unsigned short mantissa = fp11 & 0x3F; local
332 return bitCast<float>(0x7f800000 | (mantissa << 17));
340 else if (mantissa != 0)
348 mantissa <<= 1;
350 while ((mantissa & 0x40) == 0);
352 mantissa = mantissa & 0x3F;
359 return bitCast<float>(((exponent + 112) << 23) | (mantissa << 1
366 unsigned short mantissa = fp11 & 0x1F; local
[all...]
/external/chromium_org/v8/test/mjsunit/es6/
H A Dmath-fround.js65 var mantissa = 1 + this.mantissa_23_bits * mantissa_23_shift +
67 return sign * Math.pow(2, exponent) * mantissa;
77 var mantissa = 1 + (this.mantissa_23_bits + round) * mantissa_23_shift;
78 return sign * Math.pow(2, exponent) * mantissa;
96 var mantissa = (mantissa_23_bits + round) * mantissa_23_shift;
97 return sign * Math.pow(2, -126) * mantissa;
/external/aac/libSBRdec/src/
H A Dtranscendent.h114 \brief Add two values given by mantissa and exponent.
136 for compensation, the mantissa is shifted right. */
174 for compensation, the mantissa is shifted right. */
198 \brief Divide two values given by mantissa and exponent.
227 - skip first bit of mantissa, because this is always the same (>0.5)
251 /* Fetch inversed mantissa from table: */
283 - skip first bit of mantissa, because this is always the same (>0.5)
307 /* Fetch inversed mantissa from table: */
320 \brief Calculate the squareroot of a number given by mantissa and exponent
329 static inline void FDK_sqrt_MantExp(FIXP_DBL *mantissa, /*!< Pointe argument
[all...]
H A Denv_dec.cpp654 This function calculates a mantissa corresponding to the fractional
667 FIXP_SGL mantissa; local
696 mantissa = 0.5f;
698 /* Amplify mantissa according to the fractional part of the
706 multiply mantissa with the corresponding factor: */
707 mantissa = (FIXP_SGL)( (mantissa * pow2[bit]) << 1);
718 This will be compensated by a mantissa of 0.5*sqrt(2) instead of 0.5 if that bit is 1. */
719 mantissa = (exponent & ampShift) ? FL2FXCONST_SGL(0.707106781186548f) : FL2FXCONST_SGL(0.5f);
730 /* Combine mantissa an
[all...]
/external/chromium_org/third_party/yasm/source/patched-yasm/libyasm/tests/
H A Dfloatnum_test.c43 unsigned char mantissa[MANT_BYTES]; /* little endian mantissa - first member in struct:Init_Entry_s
172 unsigned char *mantissa; local
176 mantissa = BitVector_Block_Read(flt->mantissa, &len);
178 if (mantissa[i] != val->mantissa[i])
180 free(mantissa);
182 strcat(result_msg, "mantissa");
235 flt->mantissa
[all...]
/external/deqp/framework/common/
H A DtcuFloat.hpp75 * \param mantissa Mantissa bits with implicit leading bit explicitly set
79 * The normally implicit leading bit of the mantissa must be explicitly set.
81 * values are specified with the leading mantissa bit of zero and the lowest
83 * mantissa set to zero is a shorthand notation for the correctly signed
85 * exponent of ExponentBias+1 and the appropriate mantissa (with leading
88 static inline Float construct (int sign, int exponent, StorageType mantissa);
94 * \param mantissa Mantissa bits
115 inline StorageType mantissa (void) const { return isZero() || isDenorm() ? mantissaBits() : (mantissaBits() | (StorageType(1)<<MantissaBits)); } function in class:tcu::Float
206 (int sign, int exponent, StorageType mantissa)
209 const bool isShorthandZero = exponent == 0 && mantissa
205 construct(int sign, int exponent, StorageType mantissa) argument
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/
H A Dlp_bld_conv.c111 /* Exponent / mantissa bits */
141 * secondly, even if there was, since the FP's mantissa takes only a fraction
160 unsigned mantissa; local
166 mantissa = lp_mantissa(src_type);
168 if (dst_width <= mantissa) {
171 * in the lowest significant bits of the mantissa, with correct rounding.
173 * This only works if the destination width fits in the mantissa.
184 bias = (double)(1ULL << (mantissa - dst_width));
192 else if (dst_width == (mantissa + 1)) {
195 * floating point (i.e., mantissa
285 unsigned mantissa; local
[all...]
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_conv.c111 /* Exponent / mantissa bits */
141 * secondly, even if there was, since the FP's mantissa takes only a fraction
160 unsigned mantissa; local
166 mantissa = lp_mantissa(src_type);
168 if (dst_width <= mantissa) {
171 * in the lowest significant bits of the mantissa, with correct rounding.
173 * This only works if the destination width fits in the mantissa.
184 bias = (double)(1ULL << (mantissa - dst_width));
192 else if (dst_width == (mantissa + 1)) {
195 * floating point (i.e., mantissa
285 unsigned mantissa; local
[all...]
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/
H A Drtcp_packet.cc78 uint32_t* mantissa,
80 // input_base10 = mantissa * 2^exp
91 *mantissa = (input_base10 >> exponent);
470 uint32_t mantissa = 0; local
472 ComputeMantissaAnd6bitBase2Exponent(bitrate_bps, 17, &mantissa, &exp);
475 AssignUWord8(buffer, pos, (exp << 2) + ((mantissa >> 15) & 0x03));
476 AssignUWord8(buffer, pos, mantissa >> 7);
477 AssignUWord8(buffer, pos, (mantissa << 1) +
556 uint32_t mantissa = 0; local
558 ComputeMantissaAnd6bitBase2Exponent(remb_item.BitRate, 18, &mantissa,
76 ComputeMantissaAnd6bitBase2Exponent(uint32_t input_base10, uint8_t bits_mantissa, uint32_t* mantissa, uint8_t* exp) argument
[all...]

Completed in 433 milliseconds

123