HomeSort by relevance Sort by last modified time
    Searched refs:mant (Results 1 - 25 of 101) sorted by null

1 2 3 4 5

  /external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
Dfp.java 53 * n = sign &times; mant &times; (radix)<sup>exp</sup>;</p>
56 * zero and one. mant[0] is the least significant digit.
164 protected int[] mant; field in class:Dfp
182 mant = new int[field.getRadixDigits()];
212 mant = new int[field.getRadixDigits()];
234 System.arraycopy(mant, mant.length - exp, mant, mant.length - 1 - exp, exp);
235 mant[mant.length - 1] = (int) (x % RADIX)
    [all...]
DfpDec.java 167 int msb = mant[mant.length-1];
173 int cmaxdigits = mant.length * 4;
190 final int lsb = mant[lsd];
192 if (lsbthreshold <= 1 && digits == 4 * mant.length - 3) {
200 n = (mant[lsd-1] / 1000) % 10;
201 mant[lsd-1] %= 1000;
202 discarded |= mant[lsd-1];
209 discarded |= mant[i]; // need to know if there are any discarded bits
210 mant[i] = 0
    [all...]
  /prebuilts/go/darwin-x86/src/math/big/
decimal.go 23 // The value of a non-zero decimal d is d.mant * 10**d.exp with 0.5 <= d.mant < 1,
28 mant []byte // mantissa ASCII digits, big-endian
34 if 0 <= i && i < len(d.mant) {
35 return d.mant[i]
58 x.mant = x.mant[:0]
91 x.mant = append(x.mant[:0], s[:n]...)
110 for n>>s == 0 && r < len(x.mant) {
    [all...]
float.go 64 mant nat
95 // Internal representation: The mantissa bits x.mant of a nonzero finite
98 // trailing 0 bits. x.mant is normalized if the msb of x.mant == 1 (i.e.,
101 // x.mant[0] has trailing zero bits. The msb of the mantissa corresponds
104 // A zero or non-finite Float x ignores x.mant and x.exp.
106 // x form neg mant exp
212 return uint(len(x.mant))*_W - x.mant.trailingZeroBits()
245 // and returns the exponent. If a non-nil mant argument i
    [all...]
ftoa.go 90 d.init(x.mant, int(x.exp)-x.mant.bitLen())
101 prec = len(d.mant) - 1
103 prec = max(len(d.mant)-d.exp, 0)
105 prec = len(d.mant)
133 if eprec > len(d.mant) && len(d.mant) >= d.exp {
134 eprec = len(d.mant)
145 if prec > len(d.mant) {
146 prec = len(d.mant)
    [all...]
floatmarsh.go 36 if len(x.mant) < n {
37 n = len(x.mant)
39 // len(x.mant) >= n
40 sz += 4 + n*_S // exp + mant
54 x.mant[len(x.mant)-n:].bytes(buf[10:]) // cut off unused trailing words
87 z.mant = z.mant.setBytes(buf[10:])
  /prebuilts/go/linux-x86/src/math/big/
decimal.go 23 // The value of a non-zero decimal d is d.mant * 10**d.exp with 0.5 <= d.mant < 1,
28 mant []byte // mantissa ASCII digits, big-endian
34 if 0 <= i && i < len(d.mant) {
35 return d.mant[i]
58 x.mant = x.mant[:0]
91 x.mant = append(x.mant[:0], s[:n]...)
110 for n>>s == 0 && r < len(x.mant) {
    [all...]
float.go 64 mant nat
95 // Internal representation: The mantissa bits x.mant of a nonzero finite
98 // trailing 0 bits. x.mant is normalized if the msb of x.mant == 1 (i.e.,
101 // x.mant[0] has trailing zero bits. The msb of the mantissa corresponds
104 // A zero or non-finite Float x ignores x.mant and x.exp.
106 // x form neg mant exp
212 return uint(len(x.mant))*_W - x.mant.trailingZeroBits()
245 // and returns the exponent. If a non-nil mant argument i
    [all...]
ftoa.go 90 d.init(x.mant, int(x.exp)-x.mant.bitLen())
101 prec = len(d.mant) - 1
103 prec = max(len(d.mant)-d.exp, 0)
105 prec = len(d.mant)
133 if eprec > len(d.mant) && len(d.mant) >= d.exp {
134 eprec = len(d.mant)
145 if prec > len(d.mant) {
146 prec = len(d.mant)
    [all...]
floatmarsh.go 36 if len(x.mant) < n {
37 n = len(x.mant)
39 // len(x.mant) >= n
40 sz += 4 + n*_S // exp + mant
54 x.mant[len(x.mant)-n:].bytes(buf[10:]) // cut off unused trailing words
87 z.mant = z.mant.setBytes(buf[10:])
  /prebuilts/go/darwin-x86/src/runtime/
softfloat64.go 29 func funpack64(f uint64) (sign, mant uint64, exp int, inf, nan bool) {
31 mant = f & (1<<mantbits64 - 1)
36 if mant != 0 {
45 if mant != 0 {
47 for mant < 1<<mantbits64 {
48 mant <<= 1
55 mant |= 1 << mantbits64
61 func funpack32(f uint32) (sign, mant uint32, exp int, inf, nan bool) {
63 mant = f & (1<<mantbits32 - 1)
68 if mant != 0
    [all...]
  /prebuilts/go/linux-x86/src/runtime/
softfloat64.go 29 func funpack64(f uint64) (sign, mant uint64, exp int, inf, nan bool) {
31 mant = f & (1<<mantbits64 - 1)
36 if mant != 0 {
45 if mant != 0 {
47 for mant < 1<<mantbits64 {
48 mant <<= 1
55 mant |= 1 << mantbits64
61 func funpack32(f uint32) (sign, mant uint32, exp int, inf, nan bool) {
63 mant = f & (1<<mantbits32 - 1)
68 if mant != 0
    [all...]
  /external/libgsm/src/
rpe.c 228 word exp, mant; local
235 mant = xmaxc - (exp << 3);
237 if (mant == 0) {
239 mant = 7;
242 while (mant <= 7) {
243 mant = mant << 1 | 1;
246 mant -= 8;
250 assert( mant >= 0 && mant <= 7 )
268 word exp, mant; local
460 word mant, exp; local
481 word exp, mant; local
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/math/
BigDecimal.java 381 * If the first byte is 0 then the value of the number is zero (and mant.length=1, except when constructed from a
386 private byte mant[]; // assumed null field in class:BigDecimal
651 mant = new byte[d]; // we know the length
663 mant[i] = (byte) (((sj)) - (('0')));/* easy */
668 mant[i] = (byte) dvalue;
    [all...]
  /external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
BigDecimal.java 390 * If the first byte is 0 then the value of the number is zero (and mant.length=1, except when constructed from a
395 private byte mant[]; // assumed null field in class:BigDecimal
665 mant = new byte[d]; // we know the length
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
BigDecimal.java 392 * If the first byte is 0 then the value of the number is zero (and mant.length=1, except when constructed from a
397 private byte mant[]; // assumed null field in class:BigDecimal
667 mant = new byte[d]; // we know the length
    [all...]
  /prebuilts/go/darwin-x86/src/strconv/
extfloat.go 9 // number represented by the structure is mant*(2^exp), with a negative
12 mant uint64
136 f.mant >>= uint(n)
141 mant := f.mant >> (63 - flt.mantbits)
142 if f.mant&(1<<(62-flt.mantbits)) != 0 {
144 mant += 1
148 if mant == 2<<flt.mantbits {
149 mant >>= 1
156 mant =
    [all...]
ftoa.go 70 mant := bits & (uint64(1)<<flt.mantbits - 1)
77 case mant != 0:
92 mant |= uint64(1) << flt.mantbits
98 return fmtB(dst, neg, mant, exp, flt)
102 return bigFtoa(dst, prec, fmt, neg, mant, exp, flt)
112 lower, upper := f.AssignComputeBounds(mant, exp, neg, flt)
117 return bigFtoa(dst, prec, fmt, neg, mant, exp, flt)
144 f := extFloat{mant, exp - int(flt.mantbits), neg}
149 return bigFtoa(dst, prec, fmt, neg, mant, exp, flt)
155 func bigFtoa(dst []byte, prec int, fmt byte, neg bool, mant uint64, exp int, flt *floatInfo) []byte
    [all...]
  /prebuilts/go/linux-x86/src/strconv/
extfloat.go 9 // number represented by the structure is mant*(2^exp), with a negative
12 mant uint64
136 f.mant >>= uint(n)
141 mant := f.mant >> (63 - flt.mantbits)
142 if f.mant&(1<<(62-flt.mantbits)) != 0 {
144 mant += 1
148 if mant == 2<<flt.mantbits {
149 mant >>= 1
156 mant =
    [all...]
ftoa.go 70 mant := bits & (uint64(1)<<flt.mantbits - 1)
77 case mant != 0:
92 mant |= uint64(1) << flt.mantbits
98 return fmtB(dst, neg, mant, exp, flt)
102 return bigFtoa(dst, prec, fmt, neg, mant, exp, flt)
112 lower, upper := f.AssignComputeBounds(mant, exp, neg, flt)
117 return bigFtoa(dst, prec, fmt, neg, mant, exp, flt)
144 f := extFloat{mant, exp - int(flt.mantbits), neg}
149 return bigFtoa(dst, prec, fmt, neg, mant, exp, flt)
155 func bigFtoa(dst []byte, prec int, fmt byte, neg bool, mant uint64, exp int, flt *floatInfo) []byte
    [all...]
  /external/valgrind/none/tests/ppc64/
test_isa_2_07_part2.c 108 int s, uint16_t _exp, uint64_t mant)
112 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant;
115 s, _exp, mant, *(uint64_t *)farg, *(double *)farg);
119 int s, uint16_t _exp, uint32_t mant)
122 tmp = ((uint32_t)s << 31) | ((uint32_t)_exp << 23) | mant;
168 uint64_t mant; local
183 mant = 0x8000000000000ULL;
184 register_farg(&spec_fargs[i++], s, _exp, mant);
189 mant = 0xf000000000000ULL;
190 register_farg(&spec_fargs[i++], s, _exp, mant);
    [all...]
  /external/valgrind/none/tests/ppc32/
test_isa_2_06_part1.c 111 int s, uint16_t _exp, uint64_t mant)
115 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant;
118 s, _exp, mant, *(uint64_t *)farg, *(double *)farg);
152 uint64_t mant; local
166 for (mant = 0x0000000000001ULL; mant < (1ULL << 52);
168 mant = ((mant + 0x4A6) << 29) + 0x359) {
169 register_farg( &fargs[i++], s, _exp, mant );
178 mant = 0x0000000000b01ULL
792 uint64_t mant; local
    [all...]
test_isa_2_06_part3.c 106 int s, uint16_t _exp, uint64_t mant)
110 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant;
113 s, _exp, mant, *(uint64_t *)farg, *(double *)farg);
117 int s, uint16_t _exp, uint32_t mant)
120 tmp = ((uint32_t)s << 31) | ((uint32_t)_exp << 23) | mant;
233 uint64_t mant; local
248 mant = 0x8000000000000ULL;
249 register_farg(&spec_fargs[i++], s, _exp, mant);
254 mant = 0xf000000000000ULL;
255 register_farg(&spec_fargs[i++], s, _exp, mant);
    [all...]
test_isa_2_06_part2.c 107 int s, uint16_t _exp, uint64_t mant)
111 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant;
114 s, _exp, mant, *(uint64_t *)farg, *(double *)farg);
118 int s, uint16_t _exp, uint32_t mant)
121 tmp = ((uint32_t)s << 31) | ((uint32_t)_exp << 23) | mant;
294 uint64_t mant; local
309 mant = 0x8000000000000ULL;
310 register_farg(&spec_fargs[i++], s, _exp, mant);
315 mant = 0xf000000000000ULL;
316 register_farg(&spec_fargs[i++], s, _exp, mant);
    [all...]
  /frameworks/av/media/libstagefright/codecs/g711/dec/
SoftG711.cpp 298 int32_t mant = ix & 0x0f; local
301 mant += 16;
304 mant = (mant << 4) + 8;
307 mant = mant << (iexp - 1);
310 *out++ = (x > 127) ? mant : -mant;

Completed in 1308 milliseconds

1 2 3 4 5