Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for sub32 (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/CompositeBuildContinueOnMultipleFailuresIntegrationTest.groovy

            buildC = multiProjectBuild('buildC', ['sub1', 'sub2', 'sub3']) {
                buildFile << """
                    allprojects {
                        ${javaProject()}
                    }
    
                    test.dependsOn 'sub1:test', 'sub2:test', 'sub3:test'
                """
                file('sub1/src/test/java/SampleTestC_Sub1.java') << junitTestClass('SampleTestC_Sub1')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 06 13:06:27 UTC 2020
    - 5.1K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_json_prints.txt

    stdout '"Action":"output","Package":"p","Test":"Test/Sub1","Output":"Sub2"}'
    stdout '"Action":"output","Package":"p","Test":"Test/Sub1","Output":"--- PASS: Test/Sub1 \([\d.]+s\)\\n"}'
    stdout '"Action":"pass","Package":"p","Test":"Test/Sub1","Elapsed"'
    stdout '"Action":"output","Package":"p","Test":"Test/Sub3","Output":"foo bar"}'
    stdout '"Action":"output","Package":"p","Test":"Test/Sub3","Output":"baz\\n"}'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 19:50:36 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. pkg/volume/util/nested_volumes_test.go

    								{MountPath: "/ignore", Name: "vol2"},
    								{MountPath: "/mnt/sub1/sub2/sub3", Name: "vol3"},
    								{MountPath: "/mnt/sub1/sub2/sub4", Name: "vol4"},
    								{MountPath: "/mnt/sub1/sub2/sub4/skip", Name: "vol5"},
    								{MountPath: "/mnt/sub1/sub2/sub4/skip2", Name: "vol5a"},
    								{MountPath: "/mnt/sub1/sub2/sub6", Name: "vol6"},
    								{MountPath: "/mnt7", Name: "vol7"},
    							},
    						},
    					},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. src/cmd/internal/test2json/testdata/issue29755.test

    === RUN   TestOutputWithSubtest
    === RUN   TestOutputWithSubtest/sub_test
    === RUN   TestOutputWithSubtest/sub_test/sub2
    === RUN   TestOutputWithSubtest/sub_test2
    === RUN   TestOutputWithSubtest/sub_test2/sub2
    --- FAIL: TestOutputWithSubtest (0.00s)
        foo_test.go:6: output before sub tests
        foo_test.go:10: output from root test
        foo_test.go:15: output from root test
        --- PASS: TestOutputWithSubtest/sub_test (0.00s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 01 16:13:47 UTC 2020
    - 1.1K bytes
    - Viewed (0)
  8. pkg/util/hash/hash_test.go

    		hasher2 := adler32.New()
    		hasher3 := adler32.New()
    		// Act
    		DeepHashObject(hasher1, myUni1)
    		hash1 := hasher1.Sum32()
    		DeepHashObject(hasher1, myUni1)
    		hash1a := hasher1.Sum32()
    		DeepHashObject(hasher2, myUni2)
    		hash2 := hasher2.Sum32()
    		DeepHashObject(hasher3, myUni3)
    		hash3 := hasher3.Sum32()
    
    		// Assert
    		if hash1 != hash1a {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  9. src/cmd/internal/test2json/testdata/issue29755.json

    {"Action":"output","Test":"TestOutputWithSubtest/sub_test2/sub2","Output":"        --- PASS: TestOutputWithSubtest/sub_test2/sub2 (0.00s)\n"}
    {"Action":"output","Test":"TestOutputWithSubtest/sub_test2/sub2","Output":"            foo_test.go:26: output from sub2 test\n"}
    {"Action":"output","Test":"TestOutputWithSubtest","Output":"    foo_test.go:32: output after sub test\n"}
    {"Action":"pass","Test":"TestOutputWithSubtest/sub_test2/sub2"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  10. src/hash/fnv/fnv.go

    	s[1] = offset128Lower
    	return &s
    }
    
    func (s *sum32) Reset()   { *s = offset32 }
    func (s *sum32a) Reset()  { *s = offset32 }
    func (s *sum64) Reset()   { *s = offset64 }
    func (s *sum64a) Reset()  { *s = offset64 }
    func (s *sum128) Reset()  { s[0] = offset128Higher; s[1] = offset128Lower }
    func (s *sum128a) Reset() { s[0] = offset128Higher; s[1] = offset128Lower }
    
    func (s *sum32) Sum32() uint32  { return uint32(*s) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 22:36:41 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top