Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for bytepad (0.2 sec)

  1. src/vendor/golang.org/x/crypto/sha3/shake.go

    	c.initBlock = append(c.initBlock, leftEncode(uint64(len(S)*8))...)
    	c.initBlock = append(c.initBlock, S...)
    	c.Write(bytepad(c.initBlock, c.rate))
    	return &c
    }
    
    // Reset resets the hash to initial state.
    func (c *cshakeState) Reset() {
    	c.state.Reset()
    	c.Write(bytepad(c.initBlock, c.rate))
    }
    
    // Clone returns copy of a cSHAKE context within its current state.
    func (c *cshakeState) Clone() ShakeHash {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/runtime/pinner.go

    //
    //go:nosplit
    func (p *pinnerBits) ofObject(n uintptr) pinState {
    	bytep, mask := (*gcBits)(p).bitp(n * 2)
    	byteVal := atomic.Load8(bytep)
    	return pinState{bytep, byteVal, mask}
    }
    
    func (s *mspan) pinnerBitSize() uintptr {
    	return divRoundUp(uintptr(s.nelems)*2, 8)
    }
    
    // newPinnerBits returns a pointer to 8 byte aligned bytes to be used for this
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. pkg/ledger/ledger.go

    	// hash length is fixed at 64 bits until generic support is added
    	const hashLen = 64
    	byteVal := []byte(val)
    	if len(byteVal) < hashLen/8 {
    		// zero fill the left side of the slice
    		zerofill := make([]byte, hashLen/8)
    		byteVal = append(zerofill[:hashLen/8-len(byteVal)], byteVal...)
    	}
    	return byteVal[:hashLen/8]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  4. test/live.go

    		m33[byteptr()] == 0 { // ERROR "stack object .autotmp_[0-9]+ interface \{\}"
    		printnl()
    		return
    	}
    	printnl()
    }
    
    func f36() {
    	if m33[byteptr()] == 0 || // ERROR "stack object .autotmp_[0-9]+ interface \{\}"
    		m33[byteptr()] == 0 { // ERROR "stack object .autotmp_[0-9]+ interface \{\}"
    		printnl()
    		return
    	}
    	printnl()
    }
    
    func f37() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/dec.rules

    (StringLen (StringMake _ len)) => len
    
    (Load <t> ptr mem) && t.IsString() =>
      (StringMake
        (Load <typ.BytePtr> ptr mem)
        (Load <typ.Int>
          (OffPtr <typ.IntPtr> [config.PtrSize] ptr)
          mem))
    (Store dst (StringMake ptr len) mem) =>
      (Store {typ.Int}
        (OffPtr <typ.IntPtr> [config.PtrSize] dst)
        len
        (Store {typ.BytePtr} dst ptr mem))
    
    // slice ops
    (SlicePtr (SliceMake ptr _ _ )) => ptr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/writebarrier_test.go

    	"testing"
    )
    
    func TestWriteBarrierStoreOrder(t *testing.T) {
    	// Make sure writebarrier phase works even StoreWB ops are not in dependency order
    	c := testConfig(t)
    	ptrType := c.config.Types.BytePtr
    	fun := c.Fun("entry",
    		Bloc("entry",
    			Valu("start", OpInitMem, types.TypeMem, 0, nil),
    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Valu("sp", OpSP, c.config.Types.Uintptr, 0, nil),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 24 15:51:15 UTC 2018
    - 1.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/nilcheck_test.go

    // nil checks, none of which can be eliminated.
    // Run with multiple depths to observe big-O behavior.
    func benchmarkNilCheckDeep(b *testing.B, depth int) {
    	c := testConfig(b)
    	ptrType := c.config.Types.BytePtr
    
    	var blocs []bloc
    	blocs = append(blocs,
    		Bloc("entry",
    			Valu("mem", OpInitMem, types.TypeMem, 0, nil),
    			Valu("sb", OpSB, c.config.Types.Uintptr, 0, nil),
    			Goto(blockn(0)),
    		),
    	)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  8. 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)
  9. test/live_regabi.go

    		m33[byteptr()] == 0 { // ERROR "stack object .autotmp_[0-9]+ interface \{\}"
    		printnl()
    		return
    	}
    	printnl()
    }
    
    func f36() {
    	if m33[byteptr()] == 0 || // ERROR "stack object .autotmp_[0-9]+ interface \{\}"
    		m33[byteptr()] == 0 { // ERROR "stack object .autotmp_[0-9]+ interface \{\}"
    		printnl()
    		return
    	}
    	printnl()
    }
    
    func f37() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewritedec.go

    	// cond: t.IsInterface()
    	// result: @x.Block (Load <typ.BytePtr> (OffPtr <typ.BytePtrPtr> [config.PtrSize] ptr) mem)
    	for {
    		x := v_0
    		if x.Op != OpLoad {
    			break
    		}
    		t := x.Type
    		mem := x.Args[1]
    		ptr := x.Args[0]
    		if !(t.IsInterface()) {
    			break
    		}
    		b = x.Block
    		v0 := b.NewValue0(v.Pos, OpLoad, typ.BytePtr)
    		v.copyOf(v0)
    		v1 := b.NewValue0(v.Pos, OpOffPtr, typ.BytePtrPtr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 24.9K bytes
    - Viewed (0)
Back to top