summaryrefslogtreecommitdiff
path: root/src/libstddjb/uint64_bswapp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/uint64_bswapp.c')
-rw-r--r--src/libstddjb/uint64_bswapp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstddjb/uint64_bswapp.c b/src/libstddjb/uint64_bswapp.c
new file mode 100644
index 0000000..0afc549
--- /dev/null
+++ b/src/libstddjb/uint64_bswapp.c
@@ -0,0 +1,8 @@
+/* ISC license. */
+
+#include <skalibs/uint64.h>
+
+void uint64_bswapp (uint64_t *x)
+{
+ *x = uint64_bswap(*x) ;
+}