Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Sub32F (0.22 sec)

  1. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "Add64F", argLength: 2, commutative: true},
    
    	{name: "Sub8", argLength: 2}, // arg0 - arg1
    	{name: "Sub16", argLength: 2},
    	{name: "Sub32", argLength: 2},
    	{name: "Sub64", argLength: 2},
    	{name: "SubPtr", argLength: 2},
    	{name: "Sub32F", argLength: 2},
    	{name: "Sub64F", argLength: 2},
    
    	{name: "Mul8", argLength: 2, commutative: true}, // arg0 * arg1
    	{name: "Mul16", argLength: 2, commutative: true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. test/armimm.go

    	if want, got = a+c32s, add32s(a); got != want {
    		panic(fmt.Sprintf("add32s(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = a-c32a, sub32a(a); got != want {
    		panic(fmt.Sprintf("sub32a(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = a-c32s, sub32s(a); got != want {
    		panic(fmt.Sprintf("sub32s(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = a|c32a, or32(a); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 11 13:53:54 UTC 2017
    - 3.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/_gen/generic.rules

    // x - (C - z) -> x + (z - C) -> (x + z) - C
    (Sub64 x (Sub64 i:(Const64 <t>) z)) && (z.Op != OpConst64 && x.Op != OpConst64) => (Sub64 (Add64 <t> x z) i)
    (Sub32 x (Sub32 i:(Const32 <t>) z)) && (z.Op != OpConst32 && x.Op != OpConst32) => (Sub32 (Add32 <t> x z) i)
    (Sub16 x (Sub16 i:(Const16 <t>) z)) && (z.Op != OpConst16 && x.Op != OpConst16) => (Sub16 (Add16 <t> x z) i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    // and will not run on earlier targets.
    //
    (Add(Ptr|64|32|16|8) ...) => (ADD ...)
    (Add64F ...) => (FADD ...)
    (Add32F ...) => (FADDS ...)
    
    (Sub(Ptr|64|32|16|8) ...) => (SUB ...)
    (Sub32F ...) => (FSUBS ...)
    (Sub64F ...) => (FSUB ...)
    
    (Min(32|64)F x y) && buildcfg.GOPPC64 >= 9 => (XSMINJDP x y)
    (Max(32|64)F x y) && buildcfg.GOPPC64 >= 9 => (XSMAXJDP x y)
    
    // Combine 64 bit integer multiply and adds
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/S390X.rules

    (Add(64|Ptr) ...) => (ADD ...)
    (Add(32|16|8) ...) => (ADDW ...)
    (Add32F x y) => (Select0 (FADDS x y))
    (Add64F x y) => (Select0 (FADD x y))
    
    (Sub(64|Ptr) ...) => (SUB ...)
    (Sub(32|16|8) ...) => (SUBW ...)
    (Sub32F x y) => (Select0 (FSUBS x y))
    (Sub64F x y) => (Select0 (FSUB x y))
    
    (Mul64 ...) => (MULLD ...)
    (Mul(32|16|8) ...) => (MULLW ...)
    (Mul32F ...) => (FMULS ...)
    (Mul64F ...) => (FMUL ...)
    (Mul64uhilo ...) => (MLGR ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  6. src/math/bits/example_math_test.go

    func ExampleSub32() {
    	// First number is 33<<32 + 23
    	n1 := []uint32{33, 23}
    	// Second number is 21<<32 + 12
    	n2 := []uint32{21, 12}
    	// Sub them together without producing carry.
    	d1, carry := bits.Sub32(n1[1], n2[1], 0)
    	d0, _ := bits.Sub32(n1[0], n2[0], carry)
    	nsum := []uint32{d0, d1}
    	fmt.Printf("%v - %v = %v (carry bit was %v)\n", n1, n2, nsum, carry)
    
    	// First number is 3<<32 + 2147483647
    	n1 = []uint32{3, 0x7fffffff}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 11 21:27:05 UTC 2021
    - 6.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/dec64.rules

    	(Int64Make
    		(Or32 <typ.UInt32>
    			(Or32 <typ.UInt32>
    				(Lsh32x32 <typ.UInt32> (Int64Hi x) s)
    				(Rsh32Ux32 <typ.UInt32>
    					(Int64Lo x)
    					(Sub32 <typ.UInt32> (Const32 <typ.UInt32> [32]) s)))
    			(Lsh32x32 <typ.UInt32>
    				(Int64Lo x)
    				(Sub32 <typ.UInt32> s (Const32 <typ.UInt32> [32]))))
    		(Lsh32x32 <typ.UInt32> (Int64Lo x) s))
    (Lsh64x16 x s) =>
    	(Int64Make
    		(Or32 <typ.UInt32>
    			(Or32 <typ.UInt32>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 19:35:46 UTC 2022
    - 14.2K bytes
    - Viewed (0)
  8. test/fixedbugs/issue27718.go

    	inf := 1.0 / zero
    	negZero := -1 / inf
    	if 1/add32(negZero) != inf {
    		panic("negZero+0 != posZero (32 bit)")
    	}
    }
    
    //go:noinline
    func sub32(x float32) float32 {
    	return x - 0
    }
    
    func testSub32() {
    	var zero float32
    	inf := 1.0 / zero
    	negZero := -1 / inf
    	if 1/sub32(negZero) != -inf {
    		panic("negZero-0 != negZero (32 bit)")
    	}
    }
    
    //go:noinline
    func neg32(x float32) float32 {
    	return -x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 28 02:29:42 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  9. src/math/bits/bits.go

    func Sub(x, y, borrow uint) (diff, borrowOut uint) {
    	if UintSize == 32 {
    		d32, b32 := Sub32(uint32(x), uint32(y), uint32(borrow))
    		return uint(d32), uint(b32)
    	}
    	d64, b64 := Sub64(uint64(x), uint64(y), uint64(borrow))
    	return uint(d64), uint(b64)
    }
    
    // Sub32 returns the difference of x, y and borrow, diff = x - y - borrow.
    // The borrow input must be 0 or 1; otherwise the behavior is undefined.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewritegeneric.go

    			return true
    		}
    		break
    	}
    	// match: (Sub32 (Sub32 x y) x)
    	// result: (Neg32 y)
    	for {
    		if v_0.Op != OpSub32 {
    			break
    		}
    		y := v_0.Args[1]
    		x := v_0.Args[0]
    		if x != v_1 {
    			break
    		}
    		v.reset(OpNeg32)
    		v.AddArg(y)
    		return true
    	}
    	// match: (Sub32 x (Add32 x y))
    	// result: (Neg32 y)
    	for {
    		x := v_0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
Back to top