Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 199 for Shift1 (0.39 sec)

  1. src/compress/flate/testdata/huffman-shifts.golden

    Klaus Post <******@****.***> 1457448890 +0100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 11 17:40:52 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  2. test/fixedbugs/issue28079c.go

    // license that can be found in the LICENSE file.
    
    // Non-Go-constant but constant values aren't ok for shifts.
    
    package p
    
    import "unsafe"
    
    func f() {
    	_ = complex(1<<uintptr(unsafe.Pointer(nil)), 0) // ERROR "invalid operation: shifted operand 1 \(type float64\) must be integer|non-integer type for left operand of shift"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 22:28:41 UTC 2022
    - 451 bytes
    - Viewed (0)
  3. src/internal/types/testdata/fixedbugs/issue52031.go

    // Example from #52031.
    //
    // The following shifts should not produce errors on Go < 1.13, as their
    // untyped constant operands are representable by type uint.
    const (
    	_ resultFlags = (1 << iota) / 2
    
    	reportEqual
    	reportUnequal
    	reportByIgnore
    	reportByMethod
    	reportByFunc
    	reportByCycle
    )
    
    // Invalid cases.
    var x int = 1
    var _ = (8 << x /* ERRORx `signed shift count .* requires go1.13 or later` */)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 733 bytes
    - Viewed (0)
  4. src/compress/flate/testdata/huffman-shifts.wb.expect

    Klaus Post <******@****.***> 1457448890 +0100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 11 17:40:52 UTC 2016
    - 32 bytes
    - Viewed (0)
  5. src/strconv/itoa.go

    		// the compiler to generate better code for the shift operation.
    		shift := uint(bits.TrailingZeros(uint(base))) & 7
    		b := uint64(base)
    		m := uint(base) - 1 // == 1<<shift - 1
    		for u >= b {
    			i--
    			a[i] = digits[uint(u)&m]
    			u >>= shift
    		}
    		// u < base
    		i--
    		a[i] = digits[uint(u)]
    	} else {
    		// general case
    		b := uint64(base)
    		for u >= b {
    			i--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. src/compress/flate/testdata/huffman-shifts.dyn.expect

    Klaus Post <******@****.***> 1457448890 +0100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 11 17:40:52 UTC 2016
    - 32 bytes
    - Viewed (0)
  7. src/math/fma.go

    	sign = uint32(b >> 63)
    	exp = int32(b>>52) & mask
    	mantissa = b & fracMask
    
    	if exp == 0 {
    		// Normalize value if subnormal.
    		shift := uint(bits.LeadingZeros64(mantissa) - 11)
    		mantissa <<= shift
    		exp = 1 - int32(shift)
    	} else {
    		// Add implicit 1 bit
    		mantissa |= 1 << 52
    	}
    	return
    }
    
    // FMA returns x * y + z, computed with only one rounding.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 05 22:05:30 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/shift_test.go

    			Valu("c", OpConst64, c.config.Types.UInt64, amount, nil),
    			Valu("shift", op, typ, 0, nil, "load", "c"),
    			Valu("store", OpStore, types.TypeMem, 0, c.config.Types.UInt64, "resptr", "shift", "mem"),
    			Exit("store")))
    	Compile(fun.f)
    	return fun
    }
    
    func TestShiftToExtensionAMD64(t *testing.T) {
    	c := testConfig(t)
    	// Test that eligible pairs of constant shifts are converted to extensions.
    	// For example:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 4K bytes
    - Viewed (0)
  9. src/compress/flate/testdata/huffman-text-shift.golden

    Klaus Post <******@****.***> 1457448890 +0100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 11 17:40:52 UTC 2016
    - 231 bytes
    - Viewed (0)
  10. src/compress/flate/testdata/huffman-text-shift.in

    Klaus Post <******@****.***> 1457448890 +0100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 11 17:40:52 UTC 2016
    - 253 bytes
    - Viewed (0)
Back to top