| Nick Kledzik | e80e978 | 2009-09-12 01:23:48 +0000 | [diff] [blame^] | 1 | //===------- 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 |