Files
mercury/tests/hard_coded/uint32_to_uint64.exp
Julien Fischer 759f1b544e Add a cast from uint32 -> uint64.
library/uint32.m:
   Add the function cast_to_uint64/1.

tests/hard_coded/Mmakefile:
tests/hard_coded/uint32_to_uint64.{m,exp}:
   Add a test of the new function.
2018-08-18 13:27:44 +00:00

12 lines
378 B
Plaintext

cast_to_uint64(0u32) = 0u64
cast_to_uint64(1u32) = 1u64
cast_to_uint64(2u32) = 2u64
cast_to_uint64(8u32) = 8u64
cast_to_uint64(10u32) = 10u64
cast_to_uint64(16u32) = 16u64
cast_to_uint64(127u32) = 127u64
cast_to_uint64(32767u32) = 32767u64
cast_to_uint64(2147483647u32) = 2147483647u64
cast_to_uint64(2147483648u32) = 2147483648u64
cast_to_uint64(4294967295u32) = 4294967295u64