Searched defs:mantissa (Results 1 - 25 of 54) sorted by relevance

123

/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/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...]
H A Dimports.c435 float mantissa = ((float) (m)) / 1024.0f; local
437 return sign * mantissa * half_denorm;
/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...]
H A Dimports.c435 float mantissa = ((float) (m)) / 1024.0f; local
437 return sign * mantissa * half_denorm;
/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/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/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/chromium_org/third_party/skia/experimental/Intersection/
H A DDataTypes.cpp44 uint32_t mantissa : 23; member in struct:Float_t::__anon15021
/external/chromium_org/v8/tools/
H A Dgenerate-ten-powers.scm88 (define (generate-powers from to mantissa-size)
89 (let* ((nb-bits mantissa-size)
97 ;; want to create the matissa of 1/ten^i. However the mantissa must be
118 ;; start with 1.0. mantissa: 10...0 (1 followed by nb-bits-1 bits)
229 (define *mantissa-size* #f)
245 (("--mantissa-size" ?size (help "Container-size in bits"))
246 (set! *mantissa-size* (string->number size)))
264 (when (not *mantissa-size*)
266 "Missing mantissa size"
273 (let ((dividers (generate-powers *from* *to* *mantissa
[all...]
/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/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/skia/experimental/Intersection/
H A DDataTypes.cpp44 uint32_t mantissa : 23; member in struct:Float_t::__anon30435
/external/aac/libSYS/src/
H A Dwav_file.cpp334 INT sign, exponent, mantissa, sample ; local
339 mantissa = ulawbyte & 0x0F ;
341 sample = exp_lut[exponent] + (mantissa << (exponent + 3)) ;
/external/chromium_org/third_party/webrtc/video_engine/test/auto_test/automated/
H A Dvie_network_test.cc84 uint32_t mantissa = ((buf[5] & 0x03) << 16) + (buf[6] << 8) + buf[7]; local
85 double bitrate = mantissa * static_cast<double>(1 << exp);
/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/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/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/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/deqp/modules/gles3/functional/
H A Des3fShaderPackingFunctionTests.cpp564 const deUint32 mantissa = rnd.getUint32() & ((1<<23)-1); local
566 v[c] = tcu::Float32::construct(s, exp ? exp : 1 /* avoid denormals */, (1u<<23) | mantissa).asFloat();
670 const deUint32 mantissa = rnd.getUint32() & ((1<<mantBits)-1); local
671 const deUint16 value = tcu::Float16::construct(s, exp ? exp : 1 /* avoid denorm */, (1u<<10) | mantissa).bits();

Completed in 4703 milliseconds

123