Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 26 for Sqrt32 (0.5 sec)

  1. test/codegen/math.go

    	// 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"
    	// 386/sse2:"SQRTSS" 386/softfloat:-"SQRTS"
    	// arm64:"FSQRTS"
    	// arm/7:"SQRTF"
    	// mips/hardfloat:"SQRTF" mips/softfloat:-"SQRTF"
    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/cmd/compile/internal/ssa/_gen/Wasm.rules

    (Trunc ...) => (F64Trunc ...)
    (Ceil ...) => (F64Ceil ...)
    (Floor ...) => (F64Floor ...)
    (RoundToEven ...) => (F64Nearest ...)
    (Abs ...) => (F64Abs ...)
    (Copysign ...) => (F64Copysign ...)
    
    (Sqrt32 ...) => (F32Sqrt ...)
    
    (Ctz64 ...) => (I64Ctz ...)
    (Ctz32 x) => (I64Ctz (I64Or x (I64Const [0x100000000])))
    (Ctz16 x) => (I64Ctz (I64Or x (I64Const [0x10000])))
    (Ctz8  x) => (I64Ctz (I64Or x (I64Const [0x100])))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  3. src/math/all_test.go

    	{-7.751454006381804e-05, 5.588653777189071e-308, -2.2207280111272877e-308, -2.2211612130544025e-308},
    
    	// Issue #61130
    	{-1, 1, 1, 0},
    	{1, 1, -1, 0},
    }
    
    var sqrt32 = []float32{
    	0,
    	float32(Copysign(0, -1)),
    	float32(NaN()),
    	float32(Inf(1)),
    	float32(Inf(-1)),
    	1,
    	2,
    	-2,
    	4.9790119248836735e+00,
    	7.7388724745781045e+00,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  4. 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))
    (NeqB ...) => (XOR ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/MIPS.rules

    // unary ops
    (Neg(32|16|8) ...) => (NEG ...)
    (Neg(32|64)F ...) => (NEG(F|D) ...)
    
    (Com(32|16|8) x) => (NORconst [0] x)
    
    (Sqrt ...) => (SQRTD ...)
    (Sqrt32 ...) => (SQRTF ...)
    
    // TODO: optimize this case?
    (Ctz32NonZero ...) => (Ctz32 ...)
    
    // count trailing zero
    // 32 - CLZ(x&-x - 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 35.3K bytes
    - Viewed (0)
  6. 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)
  7. 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))
    (NeqB ...) => (XOR ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// 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)
    	//   ±0  → ±0 (sign preserved)
    	//   NaN → NaN
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. 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 ...)
    (FMA ...) => (FMADD ...)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/S390X.rules

    (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.
    // The SYNC instruction (fast-BCR-serialization) prevents store-load
    // reordering. Other sequences of memory operations (load-load,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
Back to top