diff options
Diffstat (limited to 'tests/swaptest.cpp')
-rw-r--r-- | tests/swaptest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/swaptest.cpp b/tests/swaptest.cpp new file mode 100644 index 0000000..2dc8daa --- /dev/null +++ b/tests/swaptest.cpp @@ -0,0 +1,9 @@ +#include <sysdata.h> +#include <stdio.h> + +int main(int argc, char **argv) { + printf("0x%.4x 0x%.4x\n", 255, __swap16(255)); + printf("0x%.8x 0x%.8x\n", 255, __swap32(255)); +// printf("0x%.16x 0x%.16llx\n", 255, __swap64(255)); + return 0; +} |