Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for sqrt32 (0.1 sec)

  1. test/codegen/math.go

    	sink64[4] = math.RoundToEven(x)
    }
    
    func sqrt(x float64) float64 {
    	// amd64:"SQRTSD"
    	// 386/sse2:"SQRTSD" 386/softfloat:-"SQRTD"
    	// arm64:"FSQRTD"
    	// arm/7:"SQRTD"
    	// mips/hardfloat:"SQRTD" mips/softfloat:-"SQRTD"
    	// mips64/hardfloat:"SQRTD" mips64/softfloat:-"SQRTD"
    	// wasm:"F64Sqrt"
    	// ppc64x:"FSQRT"
    	// riscv64: "FSQRTD"
    	return math.Sqrt(x)
    }
    
    func sqrt32(x float32) float32 {
    	// amd64:"SQRTSS"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. src/math/all_test.go

    		a := Abs(vf[i])
    		if f := SqrtGo(a); sqrt[i] != f {
    			t.Errorf("SqrtGo(%g) = %g, want %g", a, f, sqrt[i])
    		}
    		a = Abs(vf[i])
    		if f := Sqrt(a); sqrt[i] != f {
    			t.Errorf("Sqrt(%g) = %g, want %g", a, f, sqrt[i])
    		}
    	}
    	for i := 0; i < len(vfsqrtSC); i++ {
    		if f := SqrtGo(vfsqrtSC[i]); !alike(sqrtSC[i], f) {
    			t.Errorf("SqrtGo(%g) = %g, want %g", vfsqrtSC[i], f, sqrtSC[i])
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/LOONG64.rules

    (RotateLeft64 x y) => (ROTRV x (NEGV <y.Type> y))
    
    // unary ops
    (Neg(64|32|16|8) ...) => (NEGV ...)
    (Neg(32|64)F ...) => (NEG(F|D) ...)
    
    (Com(64|32|16|8) x) => (NOR (MOVVconst [0]) x)
    
    (Sqrt ...) => (SQRTD ...)
    (Sqrt32 ...) => (SQRTF ...)
    
    // boolean ops -- booleans are represented with 0=false, 1=true
    (AndB ...) => (AND ...)
    (OrB ...) => (OR ...)
    (EqB x y) => (XOR (MOVVconst [1]) (XOR <typ.Bool> x y))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/MIPS64.rules

    // unary ops
    (Neg(64|32|16|8) ...) => (NEGV ...)
    (Neg(32|64)F ...) => (NEG(F|D) ...)
    
    (Com(64|32|16|8) x) => (NOR (MOVVconst [0]) x)
    
    (Sqrt ...) => (SQRTD ...)
    (Sqrt32 ...) => (SQRTF ...)
    
    // boolean ops -- booleans are represented with 0=false, 1=true
    (AndB ...) => (AND ...)
    (OrB ...) => (OR ...)
    (EqB x y) => (XOR (MOVVconst [1]) (XOR <typ.Bool> x y))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (Or(64|32|16|8) ...) => (OR ...)
    (Xor(64|32|16|8) ...) => (XOR ...)
    
    (Neg(64|32|16|8) ...) => (NEG ...)
    (Neg(64|32)F ...) => (FNEG(D|S) ...)
    
    (Com(64|32|16|8) ...) => (NOT ...)
    
    
    (Sqrt ...) => (FSQRTD ...)
    (Sqrt32 ...) => (FSQRTS ...)
    
    (Copysign ...) => (FSGNJD ...)
    
    (Abs ...) => (FABSD ...)
    
    (FMA ...) => (FMADDD ...)
    
    (Min(64|32)F ...) => (LoweredFMIN(D|S) ...)
    (Max(64|32)F ...) => (LoweredFMAX(D|S) ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "RotateLeft8", argLength: 2},
    
    	// Square root.
    	// Special cases:
    	//   +∞  → +∞
    	//   ±0  → ±0 (sign preserved)
    	//   x<0 → NaN
    	//   NaN → NaN
    	{name: "Sqrt", argLength: 1},   // √arg0 (floating point, double precision)
    	{name: "Sqrt32", argLength: 1}, // √arg0 (floating point, single precision)
    
    	// Round to integer, float64 only.
    	// Special cases:
    	//   ±∞  → ±∞ (sign preserved)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (Cvt64Fto32F ...) => (FRSP ...)
    
    (CvtBoolToUint8 ...) => (Copy ...)
    
    (Round(32|64)F ...) => (LoweredRound(32|64)F ...)
    
    (Sqrt ...) => (FSQRT ...)
    (Sqrt32 ...) => (FSQRTS ...)
    (Floor ...) => (FFLOOR ...)
    (Ceil ...) => (FCEIL ...)
    (Trunc ...) => (FTRUNC ...)
    (Round ...) => (FROUND ...)
    (Copysign x y) => (FCPSGN y x)
    (Abs ...) => (FABS ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/S390X.rules

    // math package intrinsics
    (Sqrt      ...) => (FSQRT ...)
    (Floor       x) => (FIDBR [7] x)
    (Ceil        x) => (FIDBR [6] x)
    (Trunc       x) => (FIDBR [5] x)
    (RoundToEven x) => (FIDBR [4] x)
    (Round       x) => (FIDBR [1] x)
    (FMA     x y z) => (FMADD z x y)
    
    (Sqrt32    ...) => (FSQRTS ...)
    
    // Atomic loads and stores.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    (Bswap16 x) => (ROLWconst [8] x)
    
    (PopCount(64|32) ...) => (POPCNT(Q|L) ...)
    (PopCount16 x) => (POPCNTL (MOVWQZX <typ.UInt32> x))
    (PopCount8 x) => (POPCNTL (MOVBQZX <typ.UInt32> x))
    
    (Sqrt ...) => (SQRTSD ...)
    (Sqrt32 ...) => (SQRTSS ...)
    
    (RoundToEven x) => (ROUNDSD [0] x)
    (Floor x)       => (ROUNDSD [1] x)
    (Ceil x)        => (ROUNDSD [2] x)
    (Trunc x)       => (ROUNDSD [3] x)
    
    (FMA x y z) => (VFMADD231SD z x y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/ARM.rules

    (Or(32|16|8) ...) => (OR ...)
    (Xor(32|16|8) ...) => (XOR ...)
    
    // unary ops
    (Neg(32|16|8) x) => (RSBconst [0] x)
    (Neg(32|64)F ...) => (NEG(F|D) ...)
    
    (Com(32|16|8) ...) => (MVN ...)
    
    (Sqrt ...) => (SQRTD ...)
    (Sqrt32 ...) => (SQRTF ...)
    (Abs ...) => (ABSD ...)
    
    // TODO: optimize this for ARMv5 and ARMv6
    (Ctz32NonZero ...) => (Ctz32 ...)
    (Ctz16NonZero ...) => (Ctz32 ...)
    (Ctz8NonZero ...) => (Ctz32 ...)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 90.1K bytes
    - Viewed (0)
Back to top