Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for loadHitStoreU32 (0.51 sec)

  1. src/cmd/compile/internal/test/testdata/loadstore_test.go

    //go:noinline
    func loadHitStore32(x int32, p *int32) int64 {
    	x *= x           // try to trash high bits (arch-dependent)
    	*p = x           // store
    	return int64(*p) // load and cast
    }
    
    //go:noinline
    func loadHitStoreU32(x uint32, p *uint32) uint64 {
    	x *= x            // try to trash high bits (arch-dependent)
    	*p = x            // store
    	return uint64(*p) // load and cast
    }
    
    func testLoadHitStore(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 4.8K bytes
    - Viewed (0)
Back to top