Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for bytesVal (0.26 sec)

  1. src/internal/bytealg/compare_ppc64x.s

    	CMP	R3,R5,CR7
    	ISEL	CR0LT,R4,R6,R9
    	MOVD	R5,R6
    	MOVD	R3,R5
    	SETB_CR0(R3)
    	BC	$12,30,LR	// beqlr cr7
    	BR	cmpbody<>(SB)
    
    #ifdef GOARCH_ppc64le
    DATA byteswap<>+0(SB)/8, $0x0706050403020100
    DATA byteswap<>+8(SB)/8, $0x0f0e0d0c0b0a0908
    GLOBL byteswap<>+0(SB), RODATA, $16
    #define SWAP V21
    #endif
    
    TEXT cmpbody<>(SB),NOSPLIT|NOFRAME,$0-0
    start:
    	CMP	R9,$16,CR0
    	CMP	R9,$32,CR1
    	CMP	R9,$64,CR2
    	MOVD	$16,R10
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:33:20 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. src/runtime/pinner.go

    	return true
    }
    
    type pinState struct {
    	bytep   *uint8
    	byteVal uint8
    	mask    uint8
    }
    
    // nosplit, because it's called by isPinned, which is nosplit
    //
    //go:nosplit
    func (v *pinState) isPinned() bool {
    	return (v.byteVal & v.mask) != 0
    }
    
    func (v *pinState) isMultiPinned() bool {
    	return (v.byteVal & (v.mask << 1)) != 0
    }
    
    func (v *pinState) setPinned(val bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

        }
    
        def "can encode and decode a small long"() {
            expect:
            def bytesA = encode { Encoder encoder ->
                encoder.writeSmallLong(a as long)
            }
            def bytesB = encode { Encoder encoder ->
                encoder.writeSmallLong(b as long)
            }
            decode(bytesA) { Decoder decoder ->
                assert decoder.readSmallLong() == a
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. src/cmd/internal/goobj/objfile.go

    func (r *Reader) uint32At(off uint32) uint32 {
    	b := r.BytesAt(off, 4)
    	return binary.LittleEndian.Uint32(b)
    }
    
    func (r *Reader) int32At(off uint32) int32 {
    	return int32(r.uint32At(off))
    }
    
    func (r *Reader) uint16At(off uint32) uint16 {
    	b := r.BytesAt(off, 2)
    	return binary.LittleEndian.Uint16(b)
    }
    
    func (r *Reader) uint8At(off uint32) uint8 {
    	b := r.BytesAt(off, 1)
    	return b[0]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        // These will have the same first 4 bytes (all 0).
        byte[] bytesA = new byte[5];
        byte[] bytesB = new byte[5];
    
        // Change only the last (5th) byte
        bytesA[4] = (byte) 0xbe;
        bytesB[4] = (byte) 0xef;
    
        HashCode hashCodeA = HashCode.fromBytes(bytesA);
        HashCode hashCodeB = HashCode.fromBytes(bytesB);
    
        // They aren't equal...
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  6. pkg/util/iptree/iptree.go

    func findAncestor(a, b netip.Prefix) netip.Prefix {
    	bytesA := a.Addr().AsSlice()
    	bytesB := b.Addr().AsSlice()
    	bytes := make([]byte, len(bytesA))
    
    	max := a.Bits()
    	if l := b.Bits(); l < max {
    		max = l
    	}
    
    	mask := 0
    	for i := range bytesA {
    		xor := bytesA[i] ^ bytesB[i]
    		if xor == 0 {
    			bytes[i] = bytesA[i]
    			mask += 8
    
    		} else {
    			pos := bits.LeadingZeros8(xor)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/text/unicode/norm/composition.go

    func (rb *reorderBuffer) runeAt(n int) rune {
    	inf := rb.rune[n]
    	r, _ := utf8.DecodeRune(rb.byte[inf.pos : inf.pos+inf.size])
    	return r
    }
    
    // bytesAt returns the UTF-8 encoding of the rune at position n.
    // It is used for Hangul and recomposition.
    func (rb *reorderBuffer) bytesAt(n int) []byte {
    	inf := rb.rune[n]
    	return rb.byte[inf.pos : int(inf.pos)+int(inf.size)]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/memcombine.go

    	// This is the commit point.
    
    	// First, issue load at lowest address.
    	v = loadBlock.NewValue2(pos, OpLoad, sizeType(n*size), r[0].load.Args[0], mem)
    
    	// Byte swap if needed,
    	if needSwap {
    		v = byteSwap(loadBlock, pos, v)
    	}
    
    	// Extend if needed.
    	if n*size < root.Type.Size() {
    		v = zeroExtend(loadBlock, pos, v, n*size, root.Type.Size())
    	}
    
    	// Shift if needed.
    	if isLittleEndian && shift0 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 19:45:41 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  9. src/hash/crc32/crc32_ppc64le.s

    #define off16	R16
    #define off32	R17
    #define off48	R18
    #define off64	R19
    #define off80	R20
    #define off96	R21
    #define	off112	R22
    
    #define const1	V24
    #define const2	V25
    
    #define byteswap	V26
    #define mask_32bit	V27
    #define mask_64bit	V28
    #define zeroes		V29
    
    #define MAX_SIZE	32*1024
    #define REFLECT
    
    TEXT ·ppc64SlicingUpdateBy8(SB), NOSPLIT|NOFRAME, $0-44
    	MOVWZ	crc+0(FP), R3   // incoming crc
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 12:09:50 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  10. src/cmd/internal/objfile/goobj.go

    		if s.PkgIdx != goobj.PkgIdxHashed {
    			// We don't need the data for non-hashed symbols, yet.
    			panic("not supported")
    		}
    		i := uint32(s.SymIdx + uint32(r.NSym()+r.NHashed64def()))
    		return r.BytesAt(r.DataOff(i), r.DataSize(i))
    	}
    
    	ndef := uint32(r.NSym() + r.NHashed64def() + r.NHasheddef() + r.NNonpkgdef())
    	for i := uint32(0); i < ndef; i++ {
    		osym := r.Sym(i)
    		addr := uint64(r.DataOff(i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 15 15:39:57 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top