summaryrefslogtreecommitdiff
path: root/src/pkg/math/abs_arm.s
blob: 37a1459fe629b21189f92f7a78a1e4a2582bd2d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2011 The Go Authors.  All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

TEXT ·Abs(SB),7,$0
	MOVW	x+0(FP), R0
	MOVW	x+4(FP), R1
	AND 	$((1<<31)-1), R1
	MOVW	R0, r+8(FP)
	MOVW	R1, r+12(FP)
	RET