blob: 92851b19d4222464e9d472f73825387828bf01f1 [file] [log] [blame]
Nick Kledzike80e9782009-09-12 01:23:48 +00001//===------- bswapsi2 - Implement bswapsi2 ---------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10
11//
12// extern uint32_t __bswapsi2(uint32_t);
13//
14// Reverse all the bits in a 32-bit integer.
15//
16 .globl ___bswapsi2
17___bswapsi2:
18 rev r0, r0 // reverse bytes in parameter and put into result register
19 bx lr