1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-27 05:40:17 +05:30
gists/c-programming/math/be_to_le_ptr.h

12 lines
312 B
C
Raw Normal View History

2024-03-25 00:40:32 +05:30
/*
* be_to_le_ptr.h
*
* Useful for showing big-endian hexadecimal dumps on little-endian machines
*
* Author: Intel A80486DX2-66
2024-04-26 01:46:39 +05:30
* License: Unlicense
2024-03-25 00:40:32 +05:30
*/
#define BE_TO_LE_PTR(base, size, i) \
(base) + ((size) * ((i) / (size)) + ((size) - 1) - ((i) % (size)))