Function lbcrypto::isConvertableToNativeInt
Defined in File utilities.h
Function Documentation
-
inline bool lbcrypto::isConvertableToNativeInt(double d)
Checks whether a double fits the signed range of the native integer type: int32_t max for 32-bit NativeInteger, Max64BitValue() for 64-bit, Max128BitValue() for 128-bit.
- Parameters
d – value to test
- Returns
true if |d| is within the bound for the configured NATIVEINT size