From 64d2a7c8945ba05af859901f5e248f1befdd8621 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 3 Dec 2013 09:43:15 +0100 Subject: Imported Upstream version 1.2 --- src/pkg/math/floor_amd64.s | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/pkg/math/floor_amd64.s') diff --git a/src/pkg/math/floor_amd64.s b/src/pkg/math/floor_amd64.s index bb1a2fd22..2fd31c4fa 100644 --- a/src/pkg/math/floor_amd64.s +++ b/src/pkg/math/floor_amd64.s @@ -2,10 +2,12 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. +#include "../../cmd/ld/textflag.h" + #define Big 0x4330000000000000 // 2**52 // func Floor(x float64) float64 -TEXT ·Floor(SB),7,$0 +TEXT ·Floor(SB),NOSPLIT,$0 MOVQ x+0(FP), AX MOVQ $~(1<<63), DX // sign bit mask ANDQ AX,DX // DX = |x| @@ -27,7 +29,7 @@ isBig_floor: RET // func Ceil(x float64) float64 -TEXT ·Ceil(SB),7,$0 +TEXT ·Ceil(SB),NOSPLIT,$0 MOVQ x+0(FP), AX MOVQ $~(1<<63), DX // sign bit mask MOVQ AX, BX // BX = copy of x @@ -53,7 +55,7 @@ isBig_ceil: RET // func Trunc(x float64) float64 -TEXT ·Trunc(SB),7,$0 +TEXT ·Trunc(SB),NOSPLIT,$0 MOVQ x+0(FP), AX MOVQ $~(1<<63), DX // sign bit mask MOVQ AX, BX // BX = copy of x -- cgit v1.2.3