summaryrefslogtreecommitdiff
path: root/libbb/bb_bswap_64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/bb_bswap_64.c')
-rw-r--r--libbb/bb_bswap_64.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/libbb/bb_bswap_64.c b/libbb/bb_bswap_64.c
new file mode 100644
index 0000000..ce9d53b
--- /dev/null
+++ b/libbb/bb_bswap_64.c
@@ -0,0 +1,16 @@
+/*
+ * Utility routines.
+ *
+ * Copyright (C) 2010 Denys Vlasenko
+ *
+ * Licensed under GPLv2, see file LICENSE in this source tree.
+ */
+
+#include "libbb.h"
+
+#if !(ULONG_MAX > 0xffffffff)
+uint64_t FAST_FUNC bb_bswap_64(uint64_t x)
+{
+ return bswap_64(x);
+}
+#endif