Home
last modified time | relevance | path

Searched refs:mant (Results 1 – 25 of 41) sorted by relevance

12

/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfp.java164 protected int[] mant; field in Dfp
182 mant = new int[field.getRadixDigits()]; in Dfp()
212 mant = new int[field.getRadixDigits()]; in Dfp()
234 System.arraycopy(mant, mant.length - exp, mant, mant.length - 1 - exp, exp); in Dfp()
235 mant[mant.length - 1] = (int) (x % RADIX); in Dfp()
243 for (int i = 0; i < mant.length - 1; i++) { in Dfp()
244 if (mant[i] != 0) { in Dfp()
245 mant[i]++; in Dfp()
259 mant = new int[field.getRadixDigits()]; in Dfp()
308 System.arraycopy(xdfp.mant, 0, mant, 0, mant.length); in Dfp()
[all …]
DDfpDec.java167 int msb = mant[mant.length-1]; in round()
173 int cmaxdigits = mant.length * 4; in round()
190 final int lsb = mant[lsd]; in round()
192 if (lsbthreshold <= 1 && digits == 4 * mant.length - 3) { in round()
200 n = (mant[lsd-1] / 1000) % 10; in round()
201 mant[lsd-1] %= 1000; in round()
202 discarded |= mant[lsd-1]; in round()
209 discarded |= mant[i]; // need to know if there are any discarded bits in round()
210 mant[i] = 0; in round()
213 mant[lsd] = lsb / lsbthreshold * lsbthreshold; in round()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/math/
DBigDecimal.java395 private byte mant[]; // assumed null field in BigDecimal
665 mant = new byte[d]; // we know the length in BigDecimal()
677 mant[i] = (byte) (((int) (sj)) - ((int) ('0')));/* easy */ in BigDecimal()
682 mant[i] = (byte) dvalue; in BigDecimal()
697 mant[i] = (byte) (((int) (inchars[j])) - ((int) ('0'))); in BigDecimal()
710 if (mant[0] == 0) { in BigDecimal()
716 mant = ZERO.mant; in BigDecimal()
725 mag = (exp + mant.length) - 1; // true exponent in scientific notation in BigDecimal()
781 mant = ZERO.mant; in BigDecimal()
784 mant = ONE.mant; in BigDecimal()
[all …]
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/math/
DBigDecimal.java393 private byte mant[]; // assumed null field in BigDecimal
663 mant = new byte[d]; // we know the length in BigDecimal()
675 mant[i] = (byte) (((int) (sj)) - ((int) ('0')));/* easy */ in BigDecimal()
680 mant[i] = (byte) dvalue; in BigDecimal()
695 mant[i] = (byte) (((int) (inchars[j])) - ((int) ('0'))); in BigDecimal()
708 if (mant[0] == 0) { in BigDecimal()
714 mant = ZERO.mant; in BigDecimal()
723 mag = (exp + mant.length) - 1; // true exponent in scientific notation in BigDecimal()
779 mant = ZERO.mant; in BigDecimal()
782 mant = ONE.mant; in BigDecimal()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/math/
DBigDecimal.java384 private byte mant[]; // assumed null field in BigDecimal
649 mant = new byte[d]; // we know the length in BigDecimal()
661 mant[i] = (byte) (((int) (sj)) - ((int) ('0')));/* easy */ in BigDecimal()
666 mant[i] = (byte) dvalue; in BigDecimal()
681 mant[i] = (byte) (((int) (inchars[j])) - ((int) ('0'))); in BigDecimal()
694 if (mant[0] == 0) { in BigDecimal()
700 mant = ZERO.mant; in BigDecimal()
709 mag = (exp + mant.length) - 1; // true exponent in scientific notation in BigDecimal()
763 mant = ZERO.mant; in BigDecimal()
766 mant = ONE.mant; in BigDecimal()
[all …]
/external/libgsm/src/
Drpe.c228 word exp, mant; variable
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 );
253 *mant_out = mant;
268 word exp, mant; variable
[all …]
/external/valgrind/none/tests/ppc32/
Dtest_isa_2_06_part1.c111 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
115 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
118 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
152 uint64_t mant; in build_fargs_table() local
166 for (mant = 0x0000000000001ULL; mant < (1ULL << 52); in build_fargs_table()
168 mant = ((mant + 0x4A6) << 29) + 0x359) { in build_fargs_table()
169 register_farg( &fargs[i++], s, _exp, mant ); in build_fargs_table()
178 mant = 0x0000000000b01ULL; in build_fargs_table()
179 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
182 mant = 0x00000203f0b3dULL; in build_fargs_table()
[all …]
Dtest_isa_2_07_part2.c108 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
112 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
115 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
119 int s, uint16_t _exp, uint32_t mant) in register_sp_farg() argument
122 tmp = ((uint32_t)s << 31) | ((uint32_t)_exp << 23) | mant; in register_sp_farg()
168 uint64_t mant; in build_special_fargs_table() local
183 mant = 0x8000000000000ULL; in build_special_fargs_table()
184 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
189 mant = 0xf000000000000ULL; in build_special_fargs_table()
190 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
[all …]
Dtest_isa_2_06_part3.c106 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
110 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
113 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
117 int s, uint16_t _exp, uint32_t mant) in register_sp_farg() argument
120 tmp = ((uint32_t)s << 31) | ((uint32_t)_exp << 23) | mant; in register_sp_farg()
233 uint64_t mant; in build_special_fargs_table() local
248 mant = 0x8000000000000ULL; in build_special_fargs_table()
249 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
254 mant = 0xf000000000000ULL; in build_special_fargs_table()
255 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
[all …]
Dtest_isa_2_06_part2.c107 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
111 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
114 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
118 int s, uint16_t _exp, uint32_t mant) in register_sp_farg() argument
121 tmp = ((uint32_t)s << 31) | ((uint32_t)_exp << 23) | mant; in register_sp_farg()
294 uint64_t mant; in build_special_fargs_table() local
309 mant = 0x8000000000000ULL; in build_special_fargs_table()
310 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
315 mant = 0xf000000000000ULL; in build_special_fargs_table()
316 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
[all …]
Dtest_isa_2_07_part1.c937 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
941 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
944 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
978 uint64_t mant; in build_fargs_table() local
995 for (mant = 0x0000000000001ULL; mant < (1ULL << 52); in build_fargs_table()
997 mant = ((mant + 0x4A6) << 13) + 0x359) { in build_fargs_table()
998 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
1012 for (mant = 0x0000000000001ULL; mant < (1ULL << 52); in build_fargs_table()
1014 mant = ((mant + 0x4A6) << 29) + 0x359) { // x2 in build_fargs_table()
1015 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
[all …]
Djm-insns.c4293 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
4297 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
4304 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
4338 uint64_t mant; in build_fargs_table() local
4355 for (mant = 0x0000000000001ULL; mant < (1ULL << 52); in build_fargs_table()
4357 mant = ((mant + 0x4A6) << 13) + 0x359) { in build_fargs_table()
4358 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
4375 for (mant = 0x0000000000001ULL; mant < (1ULL << 52); in build_fargs_table()
4377 mant = ((mant + 0x4A6) << 29) + 0x359) { // x2 in build_fargs_table()
4378 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
[all …]
/external/valgrind/none/tests/ppc64/
Dtest_isa_2_06_part1.c111 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
115 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
118 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
152 uint64_t mant; in build_fargs_table() local
166 for (mant = 0x0000000000001ULL; mant < (1ULL << 52); in build_fargs_table()
168 mant = ((mant + 0x4A6) << 29) + 0x359) { in build_fargs_table()
169 register_farg( &fargs[i++], s, _exp, mant ); in build_fargs_table()
178 mant = 0x0000000000b01ULL; in build_fargs_table()
179 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
182 mant = 0x00000203f0b3dULL; in build_fargs_table()
[all …]
Dtest_isa_2_07_part2.c108 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
112 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
115 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
119 int s, uint16_t _exp, uint32_t mant) in register_sp_farg() argument
122 tmp = ((uint32_t)s << 31) | ((uint32_t)_exp << 23) | mant; in register_sp_farg()
168 uint64_t mant; in build_special_fargs_table() local
183 mant = 0x8000000000000ULL; in build_special_fargs_table()
184 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
189 mant = 0xf000000000000ULL; in build_special_fargs_table()
190 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
[all …]
Dtest_isa_2_06_part3.c106 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
110 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
113 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
117 int s, uint16_t _exp, uint32_t mant) in register_sp_farg() argument
120 tmp = ((uint32_t)s << 31) | ((uint32_t)_exp << 23) | mant; in register_sp_farg()
233 uint64_t mant; in build_special_fargs_table() local
248 mant = 0x8000000000000ULL; in build_special_fargs_table()
249 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
254 mant = 0xf000000000000ULL; in build_special_fargs_table()
255 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
[all …]
Dtest_isa_2_06_part2.c107 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
111 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
114 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
118 int s, uint16_t _exp, uint32_t mant) in register_sp_farg() argument
121 tmp = ((uint32_t)s << 31) | ((uint32_t)_exp << 23) | mant; in register_sp_farg()
294 uint64_t mant; in build_special_fargs_table() local
309 mant = 0x8000000000000ULL; in build_special_fargs_table()
310 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
315 mant = 0xf000000000000ULL; in build_special_fargs_table()
316 register_farg(&spec_fargs[i++], s, _exp, mant); in build_special_fargs_table()
[all …]
Dtest_isa_2_07_part1.c937 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
941 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
944 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
978 uint64_t mant; in build_fargs_table() local
995 for (mant = 0x0000000000001ULL; mant < (1ULL << 52); in build_fargs_table()
997 mant = ((mant + 0x4A6) << 13) + 0x359) { in build_fargs_table()
998 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
1012 for (mant = 0x0000000000001ULL; mant < (1ULL << 52); in build_fargs_table()
1014 mant = ((mant + 0x4A6) << 29) + 0x359) { // x2 in build_fargs_table()
1015 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
[all …]
Djm-insns.c4293 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
4297 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
4304 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
4338 uint64_t mant; in build_fargs_table() local
4355 for (mant = 0x0000000000001ULL; mant < (1ULL << 52); in build_fargs_table()
4357 mant = ((mant + 0x4A6) << 13) + 0x359) { in build_fargs_table()
4358 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
4375 for (mant = 0x0000000000001ULL; mant < (1ULL << 52); in build_fargs_table()
4377 mant = ((mant + 0x4A6) << 29) + 0x359) { // x2 in build_fargs_table()
4378 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
[all …]
/external/libvorbis/lib/
Dsharedbook.c50 long mant; in _float32_pack() local
56 mant=rint(ldexp(val,(VQ_FMAN-1)-exp)); in _float32_pack()
59 return(sign|exp|mant); in _float32_pack()
63 double mant=val&0x1fffff; in _float32_unpack() local
66 if(sign)mant= -mant; in _float32_unpack()
67 return(ldexp(mant,exp-(VQ_FMAN-1)-VQ_FEXP_BIAS)); in _float32_unpack()
/external/valgrind/VEX/switchback/
Dtest_ppc_jm1.c3577 int s, uint16_t _exp, uint64_t mant) in register_farg() argument
3581 tmp = ((uint64_t)s << 63) | ((uint64_t)_exp << 52) | mant; in register_farg()
3584 s, _exp, mant, *(uint64_t *)farg, *(double *)farg); in register_farg()
3603 uint64_t mant; in build_fargs_table() local
3616 for (mant = 0x0000000000001ULL; mant < (1ULL << 52); in build_fargs_table()
3618 mant = ((mant + 0x4A6) << 13) + 0x359) { in build_fargs_table()
3619 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
3630 mant = 0x0000000000000ULL; in build_fargs_table()
3631 register_farg(&fargs[i++], s, _exp, mant); in build_fargs_table()
3635 mant = 0x0000000000000ULL; in build_fargs_table()
[all …]
/external/mesa3d/src/gallium/state_trackers/vega/
Dmatrix.h49 int mant = bits & 0x007fffff; in float_to_int_floor() local
60 return (sign < 0 && (exp > -127 || mant != 0)) ? -1 : 0; in float_to_int_floor()
64 mant |= 0x00800000; in float_to_int_floor()
66 return sign * (mant << -sh); in float_to_int_floor()
71 mant += (1 << sh) - 1; in float_to_int_floor()
75 return sign * (mant >> sh); in float_to_int_floor()
/external/tremolo/Tremolo/
Dcodebook.c105 long mant=val&0x1fffff; in _float32_unpack() local
110 if(mant){ in _float32_unpack()
111 while(!(mant&0x40000000)){ in _float32_unpack()
112 mant<<=1; in _float32_unpack()
115 if(sign)mant= -mant; in _float32_unpack()
119 return mant; in _float32_unpack()
/external/icu/icu4c/source/i18n/
Dnfrs.cpp812 double mant = uprv_maxMantissa(); in util64_fromDouble() local
813 if (d < -mant) { in util64_fromDouble()
814 d = -mant; in util64_fromDouble()
815 } else if (d > mant) { in util64_fromDouble()
816 d = mant; in util64_fromDouble()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUCharacterProperty.java805 int mant=(ntv>>5)-14; in getNumericValue() local
807 if(exp<9 || (exp==9 && mant<=2)) { in getNumericValue()
808 int numValue=mant; in getNumericValue()
869 int mant=(ntv>>5)-14; in getUnicodeNumericValue() local
871 numValue=mant; in getUnicodeNumericValue()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUCharacterProperty.java806 int mant=(ntv>>5)-14; in getNumericValue() local
808 if(exp<9 || (exp==9 && mant<=2)) { in getNumericValue()
809 int numValue=mant; in getNumericValue()
870 int mant=(ntv>>5)-14; in getUnicodeNumericValue() local
872 numValue=mant; in getUnicodeNumericValue()

12