Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 158 for blockSize (0.17 sec)

  1. cmd/erasure-metadata.go

    	if totalLength == -1 {
    		return -1
    	}
    	numShards := totalLength / e.BlockSize
    	lastBlockSize := totalLength % e.BlockSize
    	lastShardSize := ceilFrac(lastBlockSize, int64(e.DataBlocks))
    	return numShards*e.ShardSize() + lastShardSize
    }
    
    // ShardSize - returns actual shared size from erasure blockSize.
    func (e ErasureInfo) ShardSize() int64 {
    	return ceilFrac(e.BlockSize, int64(e.DataBlocks))
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. src/crypto/md5/md5block.go

    package md5
    
    import (
    	"internal/byteorder"
    	"math/bits"
    )
    
    func blockGeneric(dig *digest, p []byte) {
    	// load state
    	a, b, c, d := dig.s[0], dig.s[1], dig.s[2], dig.s[3]
    
    	for i := 0; i <= len(p)-BlockSize; i += BlockSize {
    		// eliminate bounds checks on p
    		q := p[i:]
    		q = q[:BlockSize:BlockSize]
    
    		// save current state
    		aa, bb, cc, dd := a, b, c, d
    
    		// load input block
    		x0 := byteorder.LeUint32(q[4*0x0:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. src/image/jpeg/writer.go

    // encoder copies and scales the tables according to its quality parameter.
    // The values are derived from section K.1 after converting from natural to
    // zig-zag order.
    var unscaledQuant = [nQuantIndex][blockSize]byte{
    	// Luminance.
    	{
    		16, 11, 12, 14, 12, 10, 16, 14,
    		13, 14, 18, 17, 16, 19, 24, 40,
    		26, 24, 22, 22, 24, 49, 35, 37,
    		29, 40, 58, 51, 61, 60, 57, 51,
    		56, 55, 64, 72, 92, 78, 64, 68,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:45 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/sha3/sha3_s390x.go

    func (s *asmState) Size() int {
    	return s.outputLen
    }
    
    // BlockSize returns the hash's underlying block size.
    // The Write method must be able to accept any amount
    // of data, but it may operate more efficiently if all writes
    // are a multiple of the block size.
    func (s *asmState) BlockSize() int {
    	return s.rate
    }
    
    // Clone returns a copy of the ShakeHash in its current state.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. src/hash/adler32/adler32.go

    // state of the hash.
    func New() hash.Hash32 {
    	d := new(digest)
    	d.Reset()
    	return d
    }
    
    func (d *digest) Size() int { return Size }
    
    func (d *digest) BlockSize() int { return 4 }
    
    const (
    	magic         = "adl\x01"
    	marshaledSize = len(magic) + 4
    )
    
    func (d *digest) MarshalBinary() ([]byte, error) {
    	b := make([]byte, 0, marshaledSize)
    	b = append(b, magic...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/memorymanager/policy_static.go

    				}
    
    				if !isNUMAAffinitiesEqual(initContainerBlock.NUMAAffinity, containerBlock.NUMAAffinity) {
    					continue
    				}
    
    				if initContainerBlock.Size > blockSize {
    					initContainerBlock.Size -= blockSize
    					blockSize = 0
    				} else {
    					blockSize -= initContainerBlock.Size
    					initContainerBlock.Size = 0
    				}
    			}
    
    			s.SetMemoryBlocks(podUID, initContainer.Name, initContainerBlocks)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Nov 12 07:34:55 UTC 2023
    - 34K bytes
    - Viewed (0)
  7. cmd/erasure-object.go

    	case size == 0:
    		buffer = make([]byte, 1) // Allocate at least a byte to reach EOF
    	case size >= fi.Erasure.BlockSize:
    		buffer = globalBytePoolCap.Load().Get()
    		defer globalBytePoolCap.Load().Put(buffer)
    	case size < fi.Erasure.BlockSize:
    		// No need to allocate fully blockSizeV1 buffer if the incoming data is smaller.
    		buffer = make([]byte, size, 2*size+int64(fi.Erasure.ParityBlocks+fi.Erasure.DataBlocks-1))
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
  8. src/image/jpeg/dct_test.go

    //		cos((π/2) * (2*x + 1) * u / 8) *
    //		cos((π/2) * (2*y + 1) * v / 8)
    //
    // x and y are in pixel space, and u and v are in transform space.
    //
    // b acts as both dst and src.
    func slowFDCT(b *block) {
    	var dst [blockSize]float64
    	for v := 0; v < 8; v++ {
    		for u := 0; u < 8; u++ {
    			sum := 0.0
    			for y := 0; y < 8; y++ {
    				for x := 0; x < 8; x++ {
    					sum += alpha(u) * alpha(v) * float64(b[8*y+x]) *
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:30 UTC 2022
    - 8.6K bytes
    - Viewed (0)
  9. src/hash/maphash/maphash.go

    		byte(x>>24),
    		byte(x>>32),
    		byte(x>>40),
    		byte(x>>48),
    		byte(x>>56))
    }
    
    // Size returns h's hash value size, 8 bytes.
    func (h *Hash) Size() int { return 8 }
    
    // BlockSize returns h's block size.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 19:15:34 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. src/crypto/sha1/sha1_test.go

    	c := New()
    	if got := c.Size(); got != Size {
    		t.Errorf("Size = %d; want %d", got, Size)
    	}
    }
    
    func TestBlockSize(t *testing.T) {
    	c := New()
    	if got := c.BlockSize(); got != BlockSize {
    		t.Errorf("BlockSize = %d; want %d", got, BlockSize)
    	}
    }
    
    // Tests that blockGeneric (pure Go) and block (in assembly for some architectures) match.
    func TestBlockGeneric(t *testing.T) {
    	if boring.Enabled {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:27:16 UTC 2023
    - 18.3K bytes
    - Viewed (0)
Back to top