Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 52 for bbit (0.03 sec)

  1. src/math/big/bits_test.go

    	if prec >= prec0 {
    		return x.Float()
    	}
    	// prec < prec0
    
    	// determine bit 0, rounding, and sticky bit, and result bits z
    	var bit0, rbit, sbit uint
    	var z Bits
    	r := max - int(prec)
    	for _, b := range x {
    		switch {
    		case b == r:
    			rbit = 1
    		case b < r:
    			sbit = 1
    		default:
    			// b > r
    			if b == r+1 {
    				bit0 = 1
    			}
    			z = append(z, b)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/convert_type.cc

        switch (itype.getWidth()) {
          case 1:
            return tflite::TensorType_BOOL;
          case 4:
            if (itype.isUnsigned())
              llvm_unreachable("invalid unsigned 4bit integer Type in conversion");
            else
              return tflite::TensorType_INT4;
          case 8:
            if (itype.isUnsigned())
              return tflite::TensorType_UINT8;
            else
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. src/internal/runtime/atomic/atomic_andor_test.go

    		old := x
    		v := atomic.Or32(&x, 1<<i)
    		if r := (uint32(1) << (i + 1)) - 1; x != r || v != old {
    			t.Fatalf("setting bit %#x: want %#x, got new %#x and old %#v", uint32(1<<i), r, x, v)
    		}
    	}
    
    	// Start with every bit in array set to 0.
    	a := make([]uint32, 1<<12)
    
    	// Set every bit in array bit-by-bit in different goroutines.
    	done := make(chan bool)
    	for i := 0; i < 32; i++ {
    		m := uint32(1 << i)
    		go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Apr 27 20:49:32 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. src/crypto/des/block.go

    	// generate subkeys
    	for i := 0; i < 16; i++ {
    		// combine halves to form 56-bit input to PC2
    		pc2Input := uint64(leftRotations[i])<<28 | uint64(rightRotations[i])
    		// apply PC2 permutation to 7 byte input
    		c.subkeys[i] = unpack(permuteBlock(pc2Input, permutedChoice2[:]))
    	}
    }
    
    // Expand 48-bit input to 64-bit, with each 6-bit block padded by extra two bits at the top.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. src/syscall/dir_plan9.go

    // returning the remaining slice of b..
    func pstring(b []byte, s string) []byte {
    	b = pbit16(b, uint16(len(s)))
    	n := copy(b, s)
    	return b[n:]
    }
    
    // gbit8 reads an 8-bit number from b and returns it with the remaining slice of b.
    func gbit8(b []byte) (uint8, []byte) {
    	return uint8(b[0]), b[1:]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:32:38 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/crypto/sha3/sha3.go

    	// of the rate, which involves adding a "1" bit, zero or more "0" bits, and
    	// a final "1" bit. We merge the first "1" bit from the padding into dsbyte,
    	// giving 00000110b (0x06) and 00011111b (0x1f).
    	// [1] http://csrc.nist.gov/publications/drafts/fips-202/fips_202_draft.pdf
    	//     "Draft FIPS 202: SHA-3 Standard: Permutation-Based Hash and
    	//      Extendable-Output Functions (May 2014)"
    	dsbyte byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/internal/syscall/unix/siginfo_linux.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unix
    
    import (
    	"syscall"
    )
    
    const is64bit = ^uint(0) >> 63 // 0 for 32-bit hosts, 1 for 64-bit ones.
    
    // SiginfoChild is a struct filled in by Linux waitid syscall.
    // In C, siginfo_t contains a union with multiple members;
    // this struct corresponds to one used when Signo is SIGCHLD.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 01:23:00 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.h

    // 8-bit integer and expressed type is f32.
    bool IsI8F32UniformQuantizedType(Type type);
    
    // Returns true iff `type` is a uniform quantized per-axis (per-channel) type
    // whose storage type is 8-bit integer and expressed type is f32.
    bool IsI8F32UniformQuantizedPerAxisType(Type type);
    
    // Returns true iff `type` is a uniform quantized type whose storage type is
    // 32-bit integer and expressed type is f32.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/math/rand/v2/pcg.go

    	//
    	// Numpy's PCG multiplies by the 64-bit value cheapMul
    	// instead of the 128-bit value used here and in the official PCG code.
    	// This does not seem worthwhile, at least for Go: not having any high
    	// bits in the multiplier reduces the effect of low bits on the highest bits,
    	// and it only saves 1 multiply out of 3.
    	// (On 32-bit systems, it saves 1 out of 6, since Mul64 is doing 4.)
    	const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/compress/lzw/writer.go

    	// will make any future Write calls return errClosed
    	err error
    	// table is the hash table from 20-bit keys to 12-bit values. Each table
    	// entry contains key<<12|val and collisions resolve by linear probing.
    	// The keys consist of a 12-bit code prefix and an 8-bit byte suffix.
    	// The values are a 12-bit code.
    	table [tableSize]uint32
    }
    
    // writeLSB writes the code c for "Least Significant Bits first" data.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top