Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TrailingZeros32 (0.27 sec)

  1. src/cmd/compile/internal/test/inl_test.go

    	}
    	if runtime.GOARCH != "386" {
    		// As explained above, TrailingZeros64 and TrailingZeros32 are not Go code on 386.
    		// The same applies to Bswap32.
    		want["runtime/internal/sys"] = append(want["runtime/internal/sys"], "TrailingZeros64")
    		want["runtime/internal/sys"] = append(want["runtime/internal/sys"], "TrailingZeros32")
    		want["runtime/internal/sys"] = append(want["runtime/internal/sys"], "Bswap32")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  2. src/math/bits/bits.go

    	if x == 0 {
    		return 16
    	}
    	// see comment in TrailingZeros64
    	return int(deBruijn32tab[uint32(x&-x)*deBruijn32>>(32-5)])
    }
    
    // TrailingZeros32 returns the number of trailing zero bits in x; the result is 32 for x == 0.
    func TrailingZeros32(x uint32) int {
    	if x == 0 {
    		return 32
    	}
    	// see comment in TrailingZeros64
    	return int(deBruijn32tab[(x&-x)*deBruijn32>>(32-5)])
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  3. test/codegen/mathbits.go

    	return bits.TrailingZeros64(1 - n)
    }
    
    func TrailingZeros32(n uint32) int {
    	// amd64/v1,amd64/v2:"BTSQ\\t\\$32","BSFQ"
    	// amd64/v3:"TZCNTL"
    	// 386:"BSFL"
    	// arm:"CLZ"
    	// arm64:"RBITW","CLZW"
    	// s390x:"FLOGR","MOVWZ"
    	// ppc64x/power8:"ANDN","POPCNTW"
    	// ppc64x/power9: "CNTTZW"
    	// wasm:"I64Ctz"
    	return bits.TrailingZeros32(n)
    }
    
    func TrailingZeros16(n uint16) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  4. api/go1.9.txt

    pkg math/bits, func RotateLeft64(uint64, int) uint64
    pkg math/bits, func RotateLeft8(uint8, int) uint8
    pkg math/bits, func TrailingZeros(uint) int
    pkg math/bits, func TrailingZeros16(uint16) int
    pkg math/bits, func TrailingZeros32(uint32) int
    pkg math/bits, func TrailingZeros64(uint64) int
    pkg math/bits, func TrailingZeros8(uint8) int
    pkg mime, var ErrInvalidMediaParameter error
    pkg mime/multipart, type FileHeader struct, Size int64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/amd64/versions_test.go

    		if got := bits.TrailingZeros64(tt.x); got != tt.want {
    			t.Errorf("TrailingZeros64(%#x) = %d, want %d", tt.x, got, tt.want)
    		}
    		want := tt.want
    		if want == 64 {
    			want = 32
    		}
    		if got := bits.TrailingZeros32(uint32(tt.x)); got != want {
    			t.Errorf("TrailingZeros64(%#x) = %d, want %d", tt.x, got, want)
    		}
    	}
    }
    
    func TestRound(t *testing.T) {
    	for _, tt := range []struct {
    		x, want float64
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:19:15 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  6. src/runtime/slice.go

    		var shift uintptr
    		if goarch.PtrSize == 8 {
    			// Mask shift for better code generation.
    			shift = uintptr(sys.TrailingZeros64(uint64(et.Size_))) & 63
    		} else {
    			shift = uintptr(sys.TrailingZeros32(uint32(et.Size_))) & 31
    		}
    		lenmem = uintptr(oldLen) << shift
    		newlenmem = uintptr(newLen) << shift
    		capmem = roundupsize(uintptr(newcap)<<shift, noscan)
    		overflow = uintptr(newcap) > (maxAlloc >> shift)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top