Files
mercury/tests/hard_coded/write_binary_multibyte_int.exp
Julien Fischer ca7ae00c36 More library predicates for 64-bit integers.
library/io.m:
     Add predicates for writing 64-bit integers to binary streams.

library/int64.m:
     Add reverse_bytes/1.

library/uint64.m:
     Add reverse_bytes/1 and cast_from_int64/1.

runtime/mercury_int.h:
     Add MR_uint64_reverse_bytes.

tests/hard_coded/write_binary_multibyte_int.{m,exp}:
     Extend this test to cover 64-bit integers.
2018-02-08 08:51:39 -05:00

57 lines
280 B
Plaintext

0x0a
0x0b
0x0b
0x0a
0xaa
0xbb
0xbb
0xaa
0x0a
0x0b
0x0c
0x0d
0x0d
0x0c
0x0b
0x0a
0xaa
0xbb
0xcc
0xdd
0xdd
0xcc
0xbb
0xaa
0x0a
0x0b
0x0c
0x0d
0x0e
0x0f
0x00
0x00
0x00
0x00
0x0f
0x0e
0x0d
0x0c
0x0b
0x0a
0xaa
0xbb
0xcc
0xdd
0xee
0xff
0x00
0x00
0x00
0x00
0xff
0xee
0xdd
0xcc
0xbb
0xaa