Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 97 for mask16 (0.13 sec)

  1. test/codegen/bitfield.go

    }
    
    // check 32-bit shift masking
    func mask32(x uint32) uint32 {
    	return (x << 29) >> 29 // arm64:"AND\t[$]7, R[0-9]+",-"LSR",-"LSL"
    }
    
    // check 16-bit shift masking
    func mask16(x uint16) uint16 {
    	return (x << 14) >> 14 // arm64:"AND\t[$]3, R[0-9]+",-"LSR",-"LSL"
    }
    
    // check 8-bit shift masking
    func mask8(x uint8) uint8 {
    	return (x << 7) >> 7 // arm64:"AND\t[$]1, R[0-9]+",-"LSR",-"LSL"
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 06:11:32 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  2. src/runtime/utf8.go

    		if len(s) > 1 && (locb <= s[1] && s[1] <= hicb) {
    			r = rune(s[0]&mask2)<<6 | rune(s[1]&maskx)
    			pos += 2
    			if rune1Max < r {
    				return
    			}
    		}
    	case t3 <= s[0] && s[0] < t4:
    		// 0800-FFFF three byte sequence
    		if len(s) > 2 && (locb <= s[1] && s[1] <= hicb) && (locb <= s[2] && s[2] <= hicb) {
    			r = rune(s[0]&mask3)<<12 | rune(s[1]&maskx)<<6 | rune(s[2]&maskx)
    			pos += 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 06 02:46:02 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  3. test/fixedbugs/issue23305.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func mask1(a, b uint64) uint64 {
    	op1 := int32(a)
    	op2 := int32(b)
    	return uint64(uint32(op1 / op2))
    }
    
    var mask2 = mask1
    
    func main() {
    	res1 := mask1(0x1, 0xfffffffeffffffff)
    	res2 := mask2(0x1, 0xfffffffeffffffff)
    	if res1 != 0xffffffff {
    		println("got", res1, "want", 0xffffffff)
    		panic("FAIL")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 02 21:08:35 UTC 2018
    - 575 bytes
    - Viewed (0)
  4. subprojects/diagnostics/src/test/groovy/org/gradle/api/tasks/diagnostics/internal/TaskReportRendererTest.groovy

        }
    
        def writesTasksWithDetail() {
            TaskDetails task11 = taskDetails(':task11')
            TaskDetails task12 = taskDetails(':task12')
            TaskDetails task1 = taskDetails(':task1', description: 'task1Description', dependencies: [task11, task12])
            TaskDetails task2 = taskDetails(':task2')
            TaskDetails task3 = taskDetails(':task3', dependencies: [task1])
            RuleDetails rule1 = [getDescription: {'rule1Description'}] as RuleDetails
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 10 12:50:23 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  5. src/image/draw/bench_test.go

    	}
    
    	var mask image.Image
    	switch mcm {
    	case nil:
    		// No-op.
    	case color.AlphaModel:
    		mask1 := image.NewAlpha(image.Rect(0, 0, srcw, srch))
    		for y := 0; y < srch; y++ {
    			for x := 0; x < srcw; x++ {
    				a := uint8((23*x + 29*y) % 0x100)
    				// Glyph masks are typically mostly zero,
    				// so we only set a quarter of mask1's pixels.
    				if a >= 0xc0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/util/internal/AntUtil.java

            task.setProject(createProject());
            task.execute();
        }
    
        /**
         * Masks a string against Ant property expansion.
         * This needs to be used when adding a File as String property
         * via {@link groovy.ant.AntBuilder}.
         * @param string to mask
         * @return The masked String
         */
        public static String maskFilename(String string) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:48 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  7. src/crypto/sha1/sha1.go

    		if i >= 56 {
    			// we might have to write the length here if all fit in one block
    			d.x[i] |= mask1b & length[i-56]
    		}
    	}
    
    	// compress, and only keep the digest if all fit in one block
    	block(d, d.x[:])
    
    	var digest [Size]byte
    	for i, s := range d.h {
    		digest[i*4] = mask1b & byte(s>>24)
    		digest[i*4+1] = mask1b & byte(s>>16)
    		digest[i*4+2] = mask1b & byte(s>>8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:50:58 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  8. src/net/netip/uint128.go

    // significant bit (in hi) and bit 127 is the lowest (lo&1).
    type uint128 struct {
    	hi uint64
    	lo uint64
    }
    
    // mask6 returns a uint128 bitmask with the topmost n bits of a
    // 128-bit number.
    func mask6(n int) uint128 {
    	return uint128{^(^uint64(0) >> n), ^uint64(0) << (128 - n)}
    }
    
    // isZero reports whether u == 0.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 07 21:28:44 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  9. internal/pubsub/mask.go

    	"math"
    	"math/bits"
    )
    
    // Mask allows filtering by a bitset mask.
    type Mask uint64
    
    const (
    	// MaskAll is the mask for all entries.
    	MaskAll Mask = math.MaxUint64
    )
    
    // MaskFromMaskable extracts mask from an interface.
    func MaskFromMaskable(m Maskable) Mask {
    	return Mask(m.Mask())
    }
    
    // Contains returns whether *all* flags in other is present in t.
    func (t Mask) Contains(other Mask) bool {
    	return t&other == other
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jul 05 21:45:49 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go

    		updateGeneric(&state, h.buffer[:h.offset])
    	}
    	finalize(out, &state.h, &state.s)
    }
    
    // [rMask0, rMask1] is the specified Poly1305 clamping mask in little-endian. It
    // clears some bits of the secret coefficient to make it possible to implement
    // multiplication more efficiently.
    const (
    	rMask0 = 0x0FFFFFFC0FFFFFFF
    	rMask1 = 0x0FFFFFFC0FFFFFFC
    )
    
    // initialize loads the 256-bit key into the two 128-bit secret values r and s.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top