Black Lives Matter. Support the Equal Justice Initiative.

Text file src/math/modf_ppc64x.s

Documentation: math

     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
    19  

View as plain text