mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 09:23:44 +00:00
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.
57 lines
280 B
Plaintext
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
|