Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for subr32s (0.31 sec)

  1. test/armimm.go

    	if want, got = a^c32a, xor32(a); got != want {
    		panic(fmt.Sprintf("xor32(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = c32a-a, subr32a(a); got != want {
    		panic(fmt.Sprintf("subr32a(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = c32s-a, subr32s(a); got != want {
    		panic(fmt.Sprintf("subr32s(%x) = %x, want %x", a, got, want))
    	}
    	if want, got = a&^c32a, bic32(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)
  2. 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)
  3. 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)
Back to top