Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for archMod (0.12 sec)

  1. src/math/mod.go

    //
    // Special cases are:
    //
    //	Mod(±Inf, y) = NaN
    //	Mod(NaN, y) = NaN
    //	Mod(x, 0) = NaN
    //	Mod(x, ±Inf) = x
    //	Mod(x, NaN) = NaN
    func Mod(x, y float64) float64 {
    	if haveArchMod {
    		return archMod(x, y)
    	}
    	return mod(x, y)
    }
    
    func mod(x, y float64) float64 {
    	if y == 0 || IsInf(x, 0) || IsNaN(x) || IsNaN(y) {
    		return NaN()
    	}
    	y = Abs(y)
    
    	yfr, yexp := Frexp(y)
    	r := x
    	if x < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 903 bytes
    - Viewed (0)
  2. src/math/stubs.go

    }
    
    const haveArchLog1p = false
    
    func archLog1p(x float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchMod = false
    
    func archMod(x, y float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchPow = false
    
    func archPow(x, y float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchRemainder = false
    
    func archRemainder(x, y float64) float64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.6K bytes
    - Viewed (0)
  3. src/math/arith_s390x.go

    	panic("not implemented")
    }
    
    const haveArchLog2 = false
    
    func archLog2(x float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchMod = false
    
    func archMod(x, y float64) float64 {
    	panic("not implemented")
    }
    
    const haveArchRemainder = false
    
    func archRemainder(x, y float64) float64 {
    	panic("not implemented")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  4. src/math/stubs_s390x.s

    	MOVD $·log10Asm(SB), R2
    	MOVD R2, 0(R1)
    	BR   ·log10Asm(SB)
    
    GLOBL ·log10vectorfacility+0x00(SB), NOPTR, $8
    DATA ·log10vectorfacility+0x00(SB)/8, $·log10TrampolineSetup(SB)
    
    TEXT ·archCos(SB), NOSPLIT, $0
    	MOVD ·cosvectorfacility+0x00(SB), R1
    	BR   (R1)
    
    TEXT ·cosTrampolineSetup(SB), NOSPLIT, $0
    	MOVB   ·hasVX(SB), R1
    	CMPBEQ R1, $1, vectorimpl               // vectorfacility = 1, vector supported
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 12.4K bytes
    - Viewed (0)
  5. src/math/modf_arm64.s

    // Copyright 2016 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.
    
    #include "textflag.h"
    
    // func archModf(f float64) (int float64, frac float64)
    TEXT ·archModf(SB),NOSPLIT,$0
    	MOVD	f+0(FP), R0
    	FMOVD	R0, F0
    	FRINTZD	F0, F1
    	FMOVD	F1, int+8(FP)
    	FSUBD	F1, F0
    	FMOVD	F0, R1
    	AND	$(1<<63), R0
    	ORR	R0, R1 // must have same sign
    	MOVD	R1, frac+16(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 447 bytes
    - Viewed (0)
  6. src/math/modf_ppc64x.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ppc64 || ppc64le
    
    #include "textflag.h"
    
    // func archModf(f float64) (int float64, frac float64)
    TEXT ·archModf(SB),NOSPLIT,$0
    	FMOVD	f+0(FP), F0
    	FRIZ	F0, F1
    	FMOVD	F1, int+8(FP)
    	FSUB	F1, F0, F2
    	FCPSGN	F2, F0, F2
    	FMOVD	F2, frac+16(FP)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 416 bytes
    - Viewed (0)
  7. src/math/modf_asm.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build arm64 || ppc64 || ppc64le
    
    package math
    
    const haveArchModf = true
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 292 bytes
    - Viewed (0)
  8. src/math/modf_noasm.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !arm64 && !ppc64 && !ppc64le
    
    package math
    
    const haveArchModf = false
    
    func archModf(f float64) (int float64, frac float64) {
    	panic("not implemented")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 326 bytes
    - Viewed (0)
  9. src/math/log_asm.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build amd64 || s390x
    
    package math
    
    const haveArchLog = true
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 259 bytes
    - Viewed (0)
  10. src/math/log_stub.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build !amd64 && !s390x
    
    package math
    
    const haveArchLog = false
    
    func archLog(x float64) float64 {
    	panic("not implemented")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 292 bytes
    - Viewed (0)
Back to top