summaryrefslogtreecommitdiff
path: root/lib/arm/bswapsi2.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arm/bswapsi2.S')
-rw-r--r--lib/arm/bswapsi2.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/arm/bswapsi2.S b/lib/arm/bswapsi2.S
new file mode 100644
index 00000000..92851b19
--- /dev/null
+++ b/lib/arm/bswapsi2.S
@@ -0,0 +1,19 @@
+//===------- bswapsi2 - Implement bswapsi2 ---------------------------------===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+
+//
+// extern uint32_t __bswapsi2(uint32_t);
+//
+// Reverse all the bits in a 32-bit integer.
+//
+ .globl ___bswapsi2
+___bswapsi2:
+ rev r0, r0 // reverse bytes in parameter and put into result register
+ bx lr