added several float limits contants such as floats.EPSILON, E, MIN, MAX

fix VM float min max limits
This commit is contained in:
Irmen de Jong
2024-11-21 22:12:32 +01:00
parent 844c97930f
commit 8badc40883
5 changed files with 32 additions and 11 deletions
@@ -10,8 +10,8 @@ class VirtualMachineDefinition: IMachineDefinition {
override val cpu = CpuType.VIRTUAL
override val FLOAT_MAX_POSITIVE = Float.MAX_VALUE.toDouble()
override val FLOAT_MAX_NEGATIVE = -Float.MAX_VALUE.toDouble()
override val FLOAT_MAX_POSITIVE = Double.MAX_VALUE.toDouble()
override val FLOAT_MAX_NEGATIVE = -Double.MAX_VALUE.toDouble()
override val FLOAT_MEM_SIZE = 8 // 64-bits double
override val STARTUP_CODE_RESERVED_SIZE = 0u // not actually used
override val PROGRAM_LOAD_ADDRESS = 0u // not actually used