github.com/yanyiwu/go@v0.0.0-20150106053140-03d6637dbb7f/src/math/abs_arm.s (about)

     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