Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 538 for bitPos (0.13 sec)

  1. cmd/bitrot.go

    				bw.Close()
    			}
    		}
    	}
    }
    
    // Returns hash sum for whole-bitrot, nil for streaming-bitrot.
    func bitrotWriterSum(w io.Writer) []byte {
    	if bw, ok := w.(*wholeBitrotWriter); ok {
    		return bw.Sum(nil)
    	}
    	return nil
    }
    
    // Returns the size of the file with bitrot protection
    func bitrotShardFileSize(size int64, shardSize int64, algo BitrotAlgorithm) int64 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  2. cmd/bitrot-whole.go

    package cmd
    
    import (
    	"context"
    	"hash"
    	"io"
    )
    
    // Implementation to calculate bitrot for the whole file.
    type wholeBitrotWriter struct {
    	disk      StorageAPI
    	volume    string
    	filePath  string
    	shardSize int64 // This is the shard size of the erasure logic
    	hash.Hash       // For bitrot hash
    }
    
    func (b *wholeBitrotWriter) Write(p []byte) (int, error) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. cmd/bitrot-streaming.go

    // newStreamingBitrotWriterBuffer returns streaming bitrot writer implementation.
    // The output is written to the supplied writer w.
    func newStreamingBitrotWriterBuffer(w io.Writer, algo BitrotAlgorithm, shardSize int64) io.Writer {
    	return &streamingBitrotWriter{iow: ioutil.NopCloser(w), h: algo.New(), shardSize: shardSize, canClose: nil, closeWithErr: func(err error) {}}
    }
    
    // Returns streaming bitrot writer implementation.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 00:11:04 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. test/codegen/bits.go

    func bitSetTest(x int) bool {
    	// amd64:"ANDL\t[$]9, AX"
    	// amd64:"CMPQ\tAX, [$]9"
    	return x&9 == 9
    }
    
    // mask contiguous one bits
    func cont1Mask64U(x uint64) uint64 {
    	// s390x:"RISBGZ\t[$]16, [$]47, [$]0,"
    	return x & 0x0000ffffffff0000
    }
    
    // mask contiguous zero bits
    func cont0Mask64U(x uint64) uint64 {
    	// s390x:"RISBGZ\t[$]48, [$]15, [$]0,"
    	return x & 0xffff00000000ffff
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  5. internal/config/heal/heal.go

    	if err = config.CheckValidKeys(config.HealSubSys, kvs, DefaultKVS); err != nil {
    		return cfg, err
    	}
    
    	bitrot := env.Get(EnvBitrot, kvs.GetWithDefault(Bitrot, DefaultKVS))
    	if _, err = parseBitrotConfig(bitrot); err != nil {
    		return cfg, fmt.Errorf("'heal:bitrotscan' value invalid: %w", err)
    	}
    
    	cfg.Bitrot = bitrot
    
    	cfg.Sleep, err = time.ParseDuration(env.Get(EnvSleep, kvs.GetWithDefault(Sleep, DefaultKVS)))
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. cmd/storage-rest-common.go

    	storageRESTDstPath       = "destination-path"
    	storageRESTOffset        = "offset"
    	storageRESTLength        = "length"
    	storageRESTCount         = "count"
    	storageRESTBitrotAlgo    = "bitrot-algo"
    	storageRESTBitrotHash    = "bitrot-hash"
    	storageRESTDiskID        = "disk-id"
    	storageRESTForceDelete   = "force-delete"
    	storageRESTGlob          = "glob"
    	storageRESTMetrics       = "metrics"
    	storageRESTDriveQuorum   = "drive-quorum"
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/crypto/sha3/keccakf.go

    		bc4 = bits.RotateLeft64(t, 18)
    		t = a[1] ^ d1
    		bc0 = bits.RotateLeft64(t, 1)
    		t = a[7] ^ d2
    		bc1 = bits.RotateLeft64(t, 6)
    		t = a[13] ^ d3
    		bc2 = bits.RotateLeft64(t, 25)
    		t = a[19] ^ d4
    		bc3 = bits.RotateLeft64(t, 8)
    		a[20] = bc0 ^ (bc2 &^ bc1)
    		a[1] = bc1 ^ (bc3 &^ bc2)
    		a[7] = bc2 ^ (bc4 &^ bc3)
    		a[13] = bc3 ^ (bc0 &^ bc4)
    		a[19] = bc4 ^ (bc1 &^ bc0)
    
    		t = a[5] ^ d0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 10 16:37:53 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. test/codegen/mathbits.go

    	// ppc64x: -"ADDC", "ADDE", -"ADDZE"
    	r[2], c = bits.Add64(p[2], p[2], c)
    }
    
    func Add64MSaveC(p, q, r, c *[2]uint64) {
    	// ppc64x: "ADDC\tR", "ADDZE"
    	r[0], c[0] = bits.Add64(p[0], q[0], 0)
    	// ppc64x: "ADDC\t[$]-1", "ADDE", "ADDZE"
    	r[1], c[1] = bits.Add64(p[1], q[1], c[0])
    }
    
    func Add64PanicOnOverflowEQ(a, b uint64) uint64 {
    	r, c := bits.Add64(a, b, 0)
    	// s390x:"BRC\t[$]3,",-"ADDE"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. src/image/jpeg/huffman.go

    			}
    			return err
    		}
    		d.bits.a = d.bits.a<<8 | uint32(c)
    		d.bits.n += 8
    		if d.bits.m == 0 {
    			d.bits.m = 1 << 7
    		} else {
    			d.bits.m <<= 8
    		}
    		if d.bits.n >= n {
    			break
    		}
    	}
    	return nil
    }
    
    // receiveExtend is the composition of RECEIVE and EXTEND, specified in section
    // F.2.2.1.
    func (d *decoder) receiveExtend(t uint8) (int32, error) {
    	if d.bits.n < int32(t) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:08:05 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. src/math/big/bits_test.go

    	var p Bits
    	for _, x := range x {
    		for _, y := range y {
    			p = append(p, x+y)
    		}
    	}
    	return p
    }
    
    func TestMulBits(t *testing.T) {
    	for _, test := range []struct {
    		x, y, want Bits
    	}{
    		{nil, nil, nil},
    		{Bits{}, Bits{}, nil},
    		{Bits{0}, Bits{0}, Bits{0}},
    		{Bits{0}, Bits{1}, Bits{1}},
    		{Bits{1}, Bits{1, 2, 3}, Bits{2, 3, 4}},
    		{Bits{-1}, Bits{1}, Bits{0}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top