summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/arm/bswapsi2.S
blob: 92851b19d4222464e9d472f73825387828bf01f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
OpenPOWER on IntegriCloud