mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
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.
12 lines
378 B
Plaintext
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
|