diff --git a/constantine/config/common.nim b/constantine/config/common.nim index 200a92a..66b0372 100644 --- a/constantine/config/common.nim +++ b/constantine/config/common.nim @@ -14,9 +14,16 @@ 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 - BaseType* = uint64 - ## Physical BigInt for conversion in "normal integers" Word* = Ct[BaseType] ## Logical BigInt word ## A logical BigInt word is of size physical MachineWord-1