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

123

/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/deqp/framework/delibs/debase/
H A DdeFloat16.c32 deUint32 mantissa; local
42 mantissa = x.u & 0x007fffffu;
53 mantissa = mantissa | 0x00800000u;
55 /* Round mantissa to nearest (10+e) */
59 deUint32 b = (mantissa >> t) & 1u;
61 mantissa = (mantissa + a + b) >> t;
64 return (deFloat16) (sign | mantissa);
68 if (mantissa
106 deUint32 mantissa; local
[all...]
/external/crcalc/src/com/hp/creals/
H A DStringFloatRep.java43 mantissa = m;
52 * A string representation of the mantissa. The decimal point is implicitly
55 public String mantissa; field in class:StringFloatRep
61 * The mantissa is scaled by radix**exponent.
70 (sign < 0? "-" : "") + mantissa + "E" + Integer.toString(exponent)
/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:__anon14513::__anon14514
52 unsigned int mantissa:23;
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
H A Dtmmbr.cc36 uint32_t* mantissa,
38 // input_base10 = mantissa * 2^exp
49 *mantissa = (input_base10 >> exponent);
56 uint32_t mantissa = 0; local
58 ComputeMantissaAnd6bitBase2Exponent(bitrate_bps, 17, &mantissa, &exp);
61 AssignUWord8(buffer, pos, (exp << 2) + ((mantissa >> 15) & 0x03));
62 AssignUWord8(buffer, pos, mantissa >> 7);
63 AssignUWord8(buffer, pos, (mantissa << 1) +
34 ComputeMantissaAnd6bitBase2Exponent(uint32_t input_base10, uint8_t bits_mantissa, uint32_t* mantissa, uint8_t* exp) argument
H A Dtmmbn.cc34 uint32_t* mantissa,
36 // input_base10 = mantissa * 2^exp
47 *mantissa = (input_base10 >> exponent);
54 uint32_t mantissa = 0; local
56 ComputeMantissaAnd6bitBase2Exponent(bitrate_bps, 17, &mantissa, &exp);
59 AssignUWord8(buffer, pos, (exp << 2) + ((mantissa >> 15) & 0x03));
60 AssignUWord8(buffer, pos, mantissa >> 7);
61 AssignUWord8(buffer, pos, (mantissa << 1) +
32 ComputeMantissaAnd6bitBase2Exponent(uint32_t input_base10, uint8_t bits_mantissa, uint32_t* mantissa, uint8_t* exp) argument
/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/vixl/src/
H A Dutils-vixl.cc97 float FloatPack(uint32_t sign, uint32_t exp, uint32_t mantissa) { argument
98 uint32_t bits = (sign << 31) | (exp << 23) | mantissa;
103 double DoublePack(uint64_t sign, uint64_t exp, uint64_t mantissa) { argument
104 uint64_t bits = (sign << 63) | (exp << 52) | mantissa;
115 uint16_t mantissa = value & mantissa_mask; local
117 if (mantissa == 0) {
122 if (mantissa == 0) {
/external/dng_sdk/source/
H A Ddng_utils.h810 int32 mantissa = halfValue & 0x000003ff; local
815 if (mantissa == 0)
829 while (!(mantissa & 0x00000400))
831 mantissa <<= 1;
836 mantissa &= ~0x00000400;
845 if (mantissa == 0)
868 mantissa <<= 13;
870 // Assemble sign, exponent and mantissa.
872 return (uint32) ((sign << 31) | (exponent << 23) | mantissa);
883 int32 mantissa local
981 int32 mantissa = (((int32) input [1]) << 8) | input[2]; local
1053 int32 mantissa = input & 0x007FFFFF; local
[all...]
/external/valgrind/VEX/switchback/
H A Dtest_emfloat.c512 u16 mantissa[INTERNAL_FPF_PRECISION]; member in struct:__anon22788
531 static void ShiftMantLeft1(u16 *carry,u16 *mantissa);
532 static void ShiftMantRight1(u16 *carry,u16 *mantissa);
699 dest->mantissa[i]=0;
719 dest->mantissa[i]=0;
728 ** as the mantissa bits go.
737 dest->mantissa[0]=0x4000;
739 dest->mantissa[i]=0;
748 ** number's mantissa. It checks for an all-zero mantissa
814 ShiftMantLeft1(u16 *carry, u16 *mantissa) argument
839 ShiftMantRight1(u16 *carry, u16 *mantissa) argument
871 u16 *mantissa; local
[all...]
/external/swiftshader/src/Common/
H A DMath.hpp373 static const float Offset = -24.0f; // Exponent Bias (15) + Number of mantissa bits per component (9) = 24
391 unsigned short mantissa = fp11 & 0x3F; local
397 output = 0x7f800000 | (mantissa << 17);
405 else if(mantissa != 0)
413 mantissa <<= 1;
414 } while((mantissa & 0x40) == 0);
416 mantissa = mantissa & 0x3F;
423 output = ((exponent + 112) << 23) | (mantissa << 17);
432 unsigned short mantissa local
[all...]
H A DHalf.cpp31 unsigned int mantissa = (abs & 0x007FFFFF) | 0x00800000; local
36 abs = mantissa >> e;
/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/google-benchmark/src/
H A Dstring_util.cc33 double one_k, std::string* mantissa,
57 *mantissa = mantissa_stream.str();
71 *mantissa = mantissa_stream.str();
81 *mantissa = mantissa_stream.str();
100 std::string mantissa; local
102 ToExponentAndMantissa(value, threshold, precision, 1024.0, &mantissa,
104 return mantissa + ExponentToPrefix(exponent, false);
32 ToExponentAndMantissa(double val, double thresh, int precision, double one_k, std::string* mantissa, int64_t* exponent) argument
/external/libcxx/utils/google-benchmark/src/
H A Dstring_util.cc33 double one_k, std::string* mantissa,
57 *mantissa = mantissa_stream.str();
71 *mantissa = mantissa_stream.str();
81 *mantissa = mantissa_stream.str();
100 std::string mantissa; local
102 ToExponentAndMantissa(value, threshold, precision, 1024.0, &mantissa,
104 return mantissa + ExponentToPrefix(exponent, false);
32 ToExponentAndMantissa(double val, double thresh, int precision, double one_k, std::string* mantissa, int64_t* exponent) argument
/external/icu/icu4c/source/i18n/
H A Dprecision.cpp261 int64_t mantissa,
273 if (mantissa > -1000000000000000000LL /* -1e18 */
274 && mantissa < 1000000000000000000LL /* 1e18 */) {
275 digits.fAbsIntValue = mantissa;
287 if (mantissa == 0) {
293 while (mantissa % 10 == 0) {
294 mantissa /= 10;
297 if (mantissa < 0) {
298 digits.fDigits.append((char) -(mantissa % -10), status);
299 mantissa /
260 initVisibleDigits( int64_t mantissa, int32_t exponent, VisibleDigits &digits, UErrorCode &status) const argument
[all...]
H A Dprecision.h212 * The value that 'digits' is initialized to is mantissa * 10^exponent.
213 * For example mantissa = 54700 and exponent = -3 means 54.7. The
215 * not the number of trailing zeros in the mantissa, determine whether or
218 * @param mantissa the digits. May be positive or negative. May contain
227 int64_t mantissa,
260 * Converts value to a mantissa and exponent.
262 * @param value modified in place to be the mantissa. Depending on
263 * the precision settings, the resulting mantissa may not fall
/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/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/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/apache-commons-math/src/main/java/org/apache/commons/math/util/
H A DFastMath.java185 * There are 52 bits in the mantissa of a double.
256 * Get the high order bits from the mantissa.
260 * @return the high order part of the mantissa
1345 // y is the most significant 10 bits of the mantissa
3435 long mantissa = bits & 0x000fffffffffffffL;
3444 return Double.longBitsToDouble(sign | (((long) scaledExponent) << 52) | mantissa);
3448 // recover the hidden mantissa bit
3449 mantissa = mantissa | (1L << 52);
3451 // scales down complete mantissa, henc
[all...]
/external/webrtc/webrtc/modules/rtp_rtcp/source/
H A Drtcp_packet.cc68 uint32_t* mantissa,
70 // input_base10 = mantissa * 2^exp
81 *mantissa = (input_base10 >> exponent);
256 uint32_t mantissa = 0; local
258 ComputeMantissaAnd6bitBase2Exponent(remb_item.BitRate, 18, &mantissa, &exp);
267 AssignUWord8(buffer, pos, (exp << 2) + ((mantissa >> 16) & 0x03));
268 AssignUWord8(buffer, pos, mantissa >> 8);
269 AssignUWord8(buffer, pos, mantissa);
66 ComputeMantissaAnd6bitBase2Exponent(uint32_t input_base10, uint8_t bits_mantissa, uint32_t* mantissa, uint8_t* exp) argument
/external/libvorbis/doc/
H A D09-helper.tex57 1) [mantissa] = [x] bitwise AND 0x1fffff (unsigned result)
60 4) if ( [sign] is nonzero ) then negate [mantissa]
61 5) return [mantissa] * ( 2 ^ ( [exponent] - 788 ) )

Completed in 976 milliseconds

123