/external/v8/test/mjsunit/ |
toint32.js | 117 // bignum is (2^53 - 1) * 2^31 - highest number with bit 31 set. 118 var bignum = Math.pow(2, 84) - Math.pow(2, 31); variable 119 assertEquals(-Math.pow(2,31), toInt32(bignum)); 120 assertEquals(-Math.pow(2,31), toInt32(-bignum)); 121 assertEquals(0, toInt32(2 * bignum)); 122 assertEquals(0, toInt32(-(2 * bignum))); 123 assertEquals(0, toInt32(bignum - Math.pow(2,31))); 124 assertEquals(0, toInt32(-(bignum - Math.pow(2,31))));
|
/external/v8/test/cctest/ |
test-bignum.cc | 33 #include "src/bignum.h" 41 static void AssignHexString(Bignum* bignum, const char* str) { 42 bignum->AssignHexString(Vector<const char>(str, StrLength(str))); 46 static void AssignDecimalString(Bignum* bignum, const char* str) { 47 bignum->AssignDecimalString(Vector<const char>(str, StrLength(str))); 53 Bignum bignum; local 54 Bignum bignum2 122 Bignum bignum; local 160 Bignum bignum; local 259 Bignum bignum; local 349 Bignum bignum; local 449 Bignum bignum; local 550 Bignum bignum; local 651 Bignum bignum; local 1019 Bignum bignum; local 1398 Bignum bignum; local 1429 Bignum bignum; local [all...] |
test-strtod.cc | 33 #include "src/bignum.h" 375 static int CompareBignumToDiyFp(const Bignum& bignum_digits, 378 Bignum bignum; local 379 bignum.AssignBignum(bignum_digits); 380 Bignum other; 383 bignum.MultiplyByPowerOfTen(bignum_exponent); 390 bignum.ShiftLeft(-diy_fp.e()); 392 return Bignum::Compare(bignum, other) [all...] |
/external/v8/tools/ |
generate-ten-powers.scm | 36 v::bignum 42 ;;----------------bignum shifts ----------------------------------------------- 43 (define (bit-lshbx::bignum x::bignum by::bint) 46 (*bx x (exptbx #z2 (fixnum->bignum by))))) 48 (define (bit-rshbx::bignum x::bignum by::bint) 51 (/bx x (exptbx #z2 (fixnum->bignum by)))))
|
/libcore/ojluni/src/main/java/sun/security/util/ |
ObjectIdentifier.java | 167 BigInteger bignum = new BigInteger(comp); local 169 checkFirstComponent(bignum); 170 first = bignum.intValue(); 173 checkSecondComponent(first, bignum); 174 bignum = bignum.add(BigInteger.valueOf(40*first)); 176 checkOtherComponent(count, bignum); 178 pos += pack7Oid(bignum, tmp, pos);
|
/libcore/luni/src/main/java/java/math/ |
BigInt.java | 32 transient long bignum = 0; field in class:BigInt 40 return this.bignum; 44 if (this.bignum == 0) { 45 this.bignum = NativeBN.BN_new(); 46 registry.registerNativeAllocation(this, this.bignum); 52 bi.bignum = NativeBN.BN_new(); 53 registry.registerNativeAllocation(bi, bi.bignum); 59 return NativeBN.BN_cmp(a.bignum, b.bignum); 65 NativeBN.BN_copy(this.bignum, from.bignum) [all...] |
/toolchain/binutils/binutils-2.25/gas/config/ |
tc-s390.c | 844 LITTLENUM_TYPE bignum[4]; /* used if X_op == O_big && X_add_number > 0 */ member in struct:s390_lpe 969 if (memcmp (generic_bignum, lpe->bignum, 1005 memcpy (lpe->bignum, generic_bignum, [all...] |
tc-aarch64.c | 444 /* If exp.op == O_big then this bignum holds a copy of the global bignum value. */ member in struct:literal_expression 445 LITTLENUM_TYPE * bignum; [all...] |