FROM_LITTLE_ENDIAN8
Description
Conditionally converts value from little-endian to native byte order. On big-endian systems, this inverts the byte order. On little-endian systems, this is a no-op.
Parameters
| Name | Direction | Description |
|---|---|---|
x |
in | 64-bit value in little-endian format |
Success
Returns value in native byte order.
Failure
Function cannot fail - pure bitwise operation.
Usage example (Cross-references)
Usage examples (Cross-references)
- In
Int.c:1231:
// Whole limb in bounds: one little-endian load instead of a byte loop.
MemCopy(&v, data + off, 8u);
v = FROM_LITTLE_ENDIAN8(v);
} else {
for (u64 j = 0; j < k; j++) {
Last updated on