github.com/twelsh-aw/go/src@v0.0.0-20230516233729-a56fe86a7c81/math/modf_ppc64x.s (about) 1 // Copyright 2017 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 //go:build ppc64 || ppc64le 6 // +build ppc64 ppc64le 7 8 #include "textflag.h" 9 10 // func archModf(f float64) (int float64, frac float64) 11 TEXT ·archModf(SB),NOSPLIT,$0 12 FMOVD f+0(FP), F0 13 FRIZ F0, F1 14 FMOVD F1, int+8(FP) 15 FSUB F1, F0, F2 16 FCPSGN F2, F0, F2 17 FMOVD F2, frac+16(FP) 18 RET