Support 32-bit platforms
This commit is contained in:
parent
1fdb1df80a
commit
3ce237234d
|
@ -14,9 +14,16 @@
|
||||||
|
|
||||||
import ../primitives/constant_time
|
import ../primitives/constant_time
|
||||||
|
|
||||||
|
when sizeof(int) == 8:
|
||||||
|
type
|
||||||
|
BaseType* = uint64
|
||||||
|
## Physical BigInt for conversion in "normal integers"
|
||||||
|
else:
|
||||||
|
type
|
||||||
|
BaseType* = uint32
|
||||||
|
## Physical BigInt for conversion in "normal integers"
|
||||||
|
|
||||||
type
|
type
|
||||||
BaseType* = uint64
|
|
||||||
## Physical BigInt for conversion in "normal integers"
|
|
||||||
Word* = Ct[BaseType]
|
Word* = Ct[BaseType]
|
||||||
## Logical BigInt word
|
## Logical BigInt word
|
||||||
## A logical BigInt word is of size physical MachineWord-1
|
## A logical BigInt word is of size physical MachineWord-1
|
||||||
|
|
Loading…
Reference in New Issue