Colin Cross | 7bb052a | 2015-02-03 12:59:37 -0800 | [diff] [blame^] | 1 | // Copyright 2011 The Go Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style | ||||
3 | // license that can be found in the LICENSE file. | ||||
4 | |||||
5 | #include "textflag.h" | ||||
6 | |||||
7 | TEXT ·Abs(SB),NOSPLIT,$0 | ||||
8 | MOVW x_lo+0(FP), R0 | ||||
9 | MOVW x_hi+4(FP), R1 | ||||
10 | AND $((1<<31)-1), R1 | ||||
11 | MOVW R0, ret_lo+8(FP) | ||||
12 | MOVW R1, ret_hi+12(FP) | ||||
13 | RET |