File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,9 @@ abstract BigInt(BigInt_) {
39
39
// -----------------------------------------------------------------------
40
40
// Private constants
41
41
// -----------------------------------------------------------------------
42
+ #if !cppia
42
43
private static var SMALL_PRIMES_PRODUCT : BigInt = BigInt .fromString (" 1451887755777639901511587432083070202422614380984889313550570919659315177065956574359078912654149167643992684236991305777574330831666511589145701059710742276692757882915756220901998212975756543223550490431013061082131040808010565293748926901442915057819663730454818359472391642885328171302299245556663073719855" );
43
-
44
+ #end
44
45
// -----------------------------------------------------------------------
45
46
// Public interface
46
47
// -----------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -567,11 +567,13 @@ class BigInt_ {
567
567
bytes .set (0 , bytes .get (0 ) | (1 << (7 - excessBits )));
568
568
bytes .set (bytes .length - 1 , bytes .get (bytes .length - 1 ) | 1 );
569
569
r .setFromBigEndianBytesSigned (bytes );
570
+ #if !cppia
570
571
if (bits > 10 ) {
571
572
while (! equals2Int (r .gcd (BigInt .SMALL_PRIMES_PRODUCT ), 1 )) {
572
573
BigIntArithmetic .addInt (r , r , 2 );
573
574
}
574
575
}
576
+ #end
575
577
} while (! r .isProbablePrime (tolerance ));
576
578
if (r .sign () < 0 )
577
579
BigIntArithmetic .negate (r , r );
You can’t perform that action at this time.
0 commit comments