Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for IEEE (0.03 sec)

  1. src/hash/crc32/crc32.go

    // The size of a CRC-32 checksum in bytes.
    const Size = 4
    
    // Predefined polynomials.
    const (
    	// IEEE is by far and away the most common CRC-32 polynomial.
    	// Used by ethernet (IEEE 802.3), v.42, fddi, gzip, zip, png, ...
    	IEEE = 0xedb88320
    
    	// Castagnoli's polynomial, used in iSCSI.
    	// Has better error detection characteristics than IEEE.
    	// https://dx.doi.org/10.1109/26.231911
    	Castagnoli = 0x82f63b78
    
    	// Koopman's polynomial.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 12 05:36:29 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. src/hash/crc32/crc32_test.go

    // testGoldenIEEE verifies that the given function returns
    // correct IEEE checksums.
    func testGoldenIEEE(t *testing.T, crcFunc func(b []byte) uint32) {
    	for _, g := range golden {
    		if crc := crcFunc([]byte(g.in)); crc != g.ieee {
    			t.Errorf("IEEE(%s) = 0x%x want 0x%x", g.in, crc, g.ieee)
    		}
    	}
    }
    
    // testGoldenCastagnoli verifies that the given function returns
    // correct IEEE checksums.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. src/math/unsafe.go

    //
    //go:linkname Float32bits
    
    // Float32bits returns the IEEE 754 binary representation of f,
    // with the sign bit of f and the result in the same bit position.
    // Float32bits(Float32frombits(x)) == x.
    func Float32bits(f float32) uint32 { return *(*uint32)(unsafe.Pointer(&f)) }
    
    // Float32frombits returns the floating-point number corresponding
    // to the IEEE 754 binary representation b, with the sign bit of b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. src/math/cmplx/pow.go

    // Definition is per AMS55 # 4.2.8,
    // analytically equivalent to cpow(a,z) = cexp(z clog(a)).
    //
    // ACCURACY:
    //
    //                      Relative error:
    // arithmetic   domain     # trials      peak         rms
    //    IEEE      -10,+10     30000       9.4e-15     1.5e-15
    
    // Pow returns x**y, the base-x exponential of y.
    // For generalized compatibility with [math.Pow]:
    //
    //	Pow(0, ±0) returns 1+0i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/encode.go

    		// Map keys need to be sorted to have deterministic output, and this is the order
    		// defined in RFC 8949 4.2.1 "Core Deterministic Encoding Requirements".
    		Sort: cbor.SortBytewiseLexical,
    
    		// CBOR supports distinct types for IEEE-754 float16, float32, and float64. Store
    		// floats in the smallest width that preserves value so that equivalent float32 and
    		// float64 values encode to identical bytes, as they do in a JSON
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 15 15:31:10 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/math/big/float.go

    const (
    	ToNearestEven RoundingMode = iota // == IEEE 754-2008 roundTiesToEven
    	ToNearestAway                     // == IEEE 754-2008 roundTiesToAway
    	ToZero                            // == IEEE 754-2008 roundTowardZero
    	AwayFromZero                      // no IEEE 754-2008 equivalent
    	ToNegativeInf                     // == IEEE 754-2008 roundTowardNegative
    	ToPositiveInf                     // == IEEE 754-2008 roundTowardPositive
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  7. src/syscall/js/js.go

    // All other values are represented as an IEEE 754 binary representation of NaN with bits 0-31 used as
    // an ID and bits 32-34 used to differentiate between string, symbol, function and object.
    type ref uint64
    
    // nanHead are the upper 32 bits of a ref which are set if the value is not encoded as an IEEE 754 number (see above).
    const nanHead = 0x7FF80000
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 14:35:26 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  8. src/hash/crc32/gen_const_ppc64le.go

    	fmt.Fprintln(w, `#include "textflag.h"`)
    
    	// These are the polynomials supported in vector now.
    	// If adding others, include the polynomial and a name
    	// to identify it.
    
    	genCrc32ConstTable(w, 0xedb88320, "IEEE")
    	genCrc32ConstTable(w, 0x82f63b78, "Cast")
    	genCrc32ConstTable(w, 0xeb31d82e, "Koop")
    	b := w.Bytes()
    
    	err := os.WriteFile("crc32_table_ppc64le.s", b, 0666)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 20:44:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  9. src/math/exp.go

    //      for finite argument, only exp(0)=1 is exact.
    //
    // Accuracy:
    //      according to an error analysis, the error is always less than
    //      1 ulp (unit in the last place).
    //
    // Misc. info.
    //      For IEEE double
    //          if x >  7.09782712893383973096e+02 then exp(x) overflow
    //          if x < -7.45133219101941108420e+02 then exp(x) underflow
    //
    // Constants:
    // The hexadecimal values are the intended ones for the following
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  10. src/compress/gzip/gzip.go

    	Header      // written at first call to Write, Flush, or Close
    	w           io.Writer
    	level       int
    	wroteHeader bool
    	closed      bool
    	buf         [10]byte
    	compressor  *flate.Writer
    	digest      uint32 // CRC-32, IEEE polynomial (section 8)
    	size        uint32 // Uncompressed size (section 2.3.1)
    	err         error
    }
    
    // NewWriter returns a new [Writer].
    // Writes to the returned writer are compressed and written to w.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top