summaryrefslogtreecommitdiff
path: root/tests/swaptest.cpp
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:33 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:33 -0400
commit8d3fc864d094eeadc721f8e93436b37a5fab173e (patch)
tree05e201c67dca55b4ccdf90ad479a25d95e3b1e63 /tests/swaptest.cpp
Imported Upstream version 1.5.3
Diffstat (limited to 'tests/swaptest.cpp')
-rw-r--r--tests/swaptest.cpp9
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;
+}