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

1234567891011

/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.
16 int exponent = (int) ((bits >> 52) & 0x7ffL);
19 // Subnormal numbers; exponent is effectively one higher,
21 if (exponent==0)
23 exponent++;
25 // Normal numbers; leave exponent as it is but add extra
32 // Bias the exponent. It's actually biased by 1023, but we're
35 exponent -= 1075;
46 exponent
[all...]
/external/skia/experimental/Intersection/
H A DIntersectionUtilities.cpp11 // get sign, exponent, mantissa from double
12 // Translate the double into sign, exponent and mantissa.
16 int exponent = (int) ((bits >> 52) & 0x7ffL);
19 // Subnormal numbers; exponent is effectively one higher,
21 if (exponent==0)
23 exponent++;
25 // Normal numbers; leave exponent as it is but add extra
32 // Bias the exponent. It's actually biased by 1023, but we're
35 exponent -= 1075;
46 exponent
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
H A DRSAKeyParameters.java9 private BigInteger exponent; field in class:RSAKeyParameters
14 BigInteger exponent)
19 this.exponent = exponent;
29 return exponent;
11 RSAKeyParameters( boolean isPrivate, BigInteger modulus, BigInteger exponent) argument
/external/nanopb-c/examples/using_double_on_avr/
H A Ddouble_conversion.c21 int16_t exponent; local
26 exponent = ((in.i >> 23) & 0xFF) - 127;
29 if (exponent == 128)
32 exponent = 1024;
34 else if (exponent == -127)
39 exponent = -1023;
48 exponent--;
56 mantissa |= (uint64_t)(exponent + 1023) << 52;
65 int16_t exponent; local
71 exponent
[all...]
/external/compiler-rt/lib/builtins/
H A Dfixdfsi.c26 // Break a into sign, exponent, significand
30 const int exponent = (aAbs >> significandBits) - exponentBias; local
33 // If 0 < exponent < significandBits, right shift to get the result.
34 if ((unsigned int)exponent < significandBits) {
35 return sign * (significand >> (significandBits - exponent));
38 // If exponent is negative, the result is zero.
39 else if (exponent < 0) {
43 // If significandBits < exponent, left shift to get the result. This shift
48 return sign * (significand << (exponent - significandBits));
H A Dfixsfsi.c23 // Break a into sign, exponent, significand
27 const int exponent = (aAbs >> significandBits) - exponentBias; local
30 // If 0 < exponent < significandBits, right shift to get the result.
31 if ((unsigned int)exponent < significandBits) {
32 return sign * (significand >> (significandBits - exponent));
35 // If exponent is negative, the result is zero.
36 else if (exponent < 0) {
40 // If significandBits < exponent, left shift to get the result. This shift
45 return sign * (significand << (exponent - significandBits));
H A Dfloatunsidf.c32 const int exponent = (aWidth - 1) - __builtin_clz(a); local
36 const int shift = significandBits - exponent;
39 // Insert the exponent
40 result += (rep_t)(exponent + exponentBias) << significandBits;
H A Dfloatsisf.c40 const int exponent = (aWidth - 1) - __builtin_clz(a); local
44 if (exponent <= significandBits) {
45 const int shift = significandBits - exponent;
48 const int shift = exponent - significandBits;
55 // Insert the exponent
56 result += (rep_t)(exponent + exponentBias) << significandBits;
H A Dfloatunsisf.c32 const int exponent = (aWidth - 1) - __builtin_clz(a); local
36 if (exponent <= significandBits) {
37 const int shift = significandBits - exponent;
40 const int shift = exponent - significandBits;
47 // Insert the exponent
48 result += (rep_t)(exponent + exponentBias) << significandBits;
H A Dfloatsidf.c40 const int exponent = (aWidth - 1) - __builtin_clz(a); local
46 const int shift = significandBits - exponent;
49 // Insert the exponent
50 result += (rep_t)(exponent + exponentBias) << significandBits;
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/
H A Dstrtod.h39 double Strtod(Vector<const char> buffer, int exponent);
H A Dstrtod.cc116 int exponent,
129 exponent + (buffer.length() - kMaxSignificantDecimalDigits);
168 // Compute the binary exponent.
169 int exponent = 0; local
170 *result = DiyFp(significand, exponent);
177 int exponent,
191 // If the 10^exponent (resp. 10^-exponent) fits into a double too then we
196 if (exponent < 0 && -exponent < kExactPowersOfTenSiz
115 TrimToMaxSignificantDigits(Vector<const char> buffer, int exponent, char* significant_buffer, int* significant_exponent) argument
176 DoubleStrtod(Vector<const char> trimmed, int exponent, double* result) argument
230 AdjustmentPowerOfTen(int exponent) argument
[all...]
H A Dfixed-dtoa.cc224 // point at bit (-exponent).
226 // -128 <= exponent <= 0.
227 // 0 <= fractionals * 2^exponent < 1
234 static void FillFractionals(uint64_t fractionals, int exponent, argument
237 ASSERT(-128 <= exponent && exponent <= 0);
239 // (-exponent). Inside the function the non-converted remainder of fractionals
241 if (-exponent <= 64) {
244 int point = -exponent;
269 ASSERT(64 < -exponent
318 int exponent = Double(v).Exponent(); local
369 significand <<= exponent; local
[all...]
/external/chromium_org/v8/src/
H A Dstrtod.h13 double Strtod(Vector<const char> buffer, int exponent);
H A Dstrtod.cc94 int exponent,
107 exponent + (buffer.length() - kMaxSignificantDecimalDigits);
147 // Compute the binary exponent.
148 int exponent = 0; local
149 *result = DiyFp(significand, exponent);
156 int exponent,
172 // If the 10^exponent (resp. 10^-exponent) fits into a double too then we
177 if (exponent < 0 && -exponent < kExactPowersOfTenSiz
93 TrimToMaxSignificantDigits(Vector<const char> buffer, int exponent, char* significant_buffer, int* significant_exponent) argument
155 DoubleStrtod(Vector<const char> trimmed, int exponent, double* result) argument
211 AdjustmentPowerOfTen(int exponent) argument
[all...]
H A Dfixed-dtoa.cc202 // point at bit (-exponent).
204 // -128 <= exponent <= 0.
205 // 0 <= fractionals * 2^exponent < 1
212 static void FillFractionals(uint64_t fractionals, int exponent, argument
215 DCHECK(-128 <= exponent && exponent <= 0);
217 // (-exponent). Inside the function the non-converted remainder of fractionals
219 if (-exponent <= 64) {
222 int point = -exponent;
247 DCHECK(64 < -exponent
296 int exponent = Double(v).Exponent(); local
347 significand <<= exponent; local
[all...]
/external/valgrind/main/VEX/priv/
H A Dhost_generic_maddf.c86 unsigned int exponent:11; member in struct:vg_ieee754_double::__anon31905
92 unsigned int exponent:11;
121 if ((u.ieee.mantissa1 & 1) == 0 && u.ieee.exponent != 0x7ff)
144 if (UNLIKELY (u.ieee.exponent + v.ieee.exponent
146 || UNLIKELY (u.ieee.exponent >= 0x7ff - DBL_MANT_DIG)
147 || UNLIKELY (v.ieee.exponent >= 0x7ff - DBL_MANT_DIG)
148 || UNLIKELY (w.ieee.exponent >= 0x7ff - DBL_MANT_DIG)
149 || UNLIKELY (u.ieee.exponent + v.ieee.exponent
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_format_r11g11b10f.h59 /* Map exponent to the range [-127,128] */
60 int exponent = ((f32.ui >> 23) & 0xff) - 127; local
63 if (exponent == 128) { /* Infinity or NaN */
88 else if (exponent > -15) { /* Representable value */
89 exponent += UF11_EXPONENT_BIAS;
91 uf11 = exponent << UF11_EXPONENT_SHIFT | mantissa;
104 int exponent = (val & 0x07c0) >> UF11_EXPONENT_SHIFT; local
109 if (exponent == 0) {
115 else if (exponent == 31) {
120 exponent
146 int exponent = ((f32.ui >> 23) & 0xff) - 127; local
190 int exponent = (val & 0x03e0) >> UF10_EXPONENT_SHIFT; local
[all...]
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_format_r11g11b10f.h59 /* Map exponent to the range [-127,128] */
60 int exponent = ((f32.ui >> 23) & 0xff) - 127; local
63 if (exponent == 128) { /* Infinity or NaN */
88 else if (exponent > -15) { /* Representable value */
89 exponent += UF11_EXPONENT_BIAS;
91 uf11 = exponent << UF11_EXPONENT_SHIFT | mantissa;
104 int exponent = (val & 0x07c0) >> UF11_EXPONENT_SHIFT; local
109 if (exponent == 0) {
115 else if (exponent == 31) {
120 exponent
146 int exponent = ((f32.ui >> 23) & 0xff) - 127; local
190 int exponent = (val & 0x03e0) >> UF10_EXPONENT_SHIFT; local
[all...]
/external/chromium_org/third_party/boringssl/src/crypto/bn/
H A Drsaz_exp.h37 const BN_ULONG base_norm[16], const BN_ULONG exponent[16],
42 const BN_ULONG base_norm[8], const BN_ULONG exponent[8],
/external/bison/lib/
H A Dprintf-frexp.c69 int exponent; local
76 x = FREXP (x, &exponent);
79 exponent -= 1;
81 if (exponent < MIN_EXP - 1)
83 x = LDEXP (x, exponent - (MIN_EXP - 1));
84 exponent = MIN_EXP - 1;
88 /* Since the exponent is an 'int', it fits in 64 bits. Therefore the
94 exponent = 0;
97 /* A nonnegative exponent. */
103 x * 2^exponent
[all...]
H A Dfrexp.c61 int exponent; local
81 /* Since the exponent is an 'int', it fits in 64 bits. Therefore the
87 exponent = 0;
90 /* A positive exponent. */
95 x * 2^exponent = argument, x >= 1.0. */
102 exponent += (1 << i);
118 exponent += (1 << i);
124 /* A negative or zero exponent. */
129 x * 2^exponent = argument, x < 1.0. */
136 exponent
[all...]
/external/guava/guava/src/com/google/common/math/
H A DDoubleUtils.java55 // The mask for the exponent, according to the {@link
80 int exponent = (int) ((bits & EXPONENT_MASK) >> SIGNIFICAND_BITS);
81 exponent -= EXPONENT_BIAS;
82 return exponent;
90 int exponent = getExponent(d);
91 switch (exponent) {
97 int newExponent = exponent + scale;
111 int exponent = getExponent(d);
114 return (exponent == MIN_DOUBLE_EXPONENT - 1)
139 int exponent
[all...]
/external/chromium_org/chrome/common/extensions/docs/examples/apps/calculator/app/
H A Dmodel.js119 var exponent = Number(x.toExponential(this.precision - 1).split('e')[1]);
120 var digits = this.digits_(exponent);
122 var fixed = (Math.abs(exponent) < this.precision && exponent > -7);
132 Model.prototype.digits_ = function(exponent) {
133 return (isNaN(exponent) || exponent < -199 || exponent > 199) ? 0 :
134 (exponent < -99) ? (this.precision - 1 - 5) :
135 (exponent <
[all...]
/external/smali/util/src/main/java/org/jf/util/
H A DNumberUtils.java86 int exponent = asFloat.indexOf("E");
88 if (zeros > decimalPoint && zeros < exponent) {
89 asFloat = asFloat.substring(0, zeros) + asFloat.substring(exponent);
92 if (nines > decimalPoint && nines < exponent) {
93 asFloat = asFloat.substring(0, nines) + asFloat.substring(exponent);
128 int exponent = asDouble.indexOf("E");
130 if (zeros > decimalPoint && zeros < exponent) {
131 asDouble = asDouble.substring(0, zeros) + asDouble.substring(exponent);
134 if (nines > decimalPoint && nines < exponent) {
135 asDouble = asDouble.substring(0, nines) + asDouble.substring(exponent);
[all...]

Completed in 567 milliseconds

1234567891011