- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 148 for mask1 (0.06 sec)
-
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) -
src/syscall/wtf8_windows.go
// Check if s[i:] contains a valid WTF-8 encoded surrogate. if sc := s[i:]; len(sc) >= 3 && sc[0] == 0xED && 0xA0 <= sc[1] && sc[1] <= 0xBF && 0x80 <= sc[2] && sc[2] <= 0xBF { r = rune(sc[0]&mask3)<<12 + rune(sc[1]&maskx)<<6 + rune(sc[2]&maskx) buf = append(buf, uint16(r)) i += 3 continue } } i += size buf = utf16.AppendRune(buf, r) } return buf } // decodeWTF16 returns the WTF-8 encoding of
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 15 09:26:16 UTC 2023 - 2.7K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/bitmask/bitmask.go
} mask &^= 1 << uint64(i) } *s = mask return nil } // And performs and operation on all bits in masks func (s *bitMask) And(masks ...BitMask) { for _, m := range masks { *s &= *m.(*bitMask) } } // Or performs or operation on all bits in masks func (s *bitMask) Or(masks ...BitMask) { for _, m := range masks { *s |= *m.(*bitMask) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 09:45:09 UTC 2022 - 5.1K bytes - Viewed (0) -
src/image/draw/clip_test.go
src0 := image.NewRGBA(image.Rect(0, 0, 100, 100)) mask0 := image.NewRGBA(image.Rect(0, 0, 100, 100)) for _, c := range clipTests { dst := dst0.SubImage(c.dr).(*image.RGBA) src := src0.SubImage(c.sr).(*image.RGBA) r, sp, mp := c.r, c.sp, c.mp if c.nilMask { clip(dst, &r, src, &sp, nil, nil) } else { clip(dst, &r, src, &sp, mask0.SubImage(c.mr), &mp) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 18:07:05 UTC 2023 - 4.4K bytes - Viewed (0) -
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) -
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 (1) -
platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/UnionFileCollectionTest.groovy
def dependsOnUnionOfDependenciesOfSourceCollections() { def task1 = Stub(Task) def task2 = Stub(Task) def task3 = Stub(Task) def source1 = Stub(FileCollectionInternal) def source2 = Stub(FileCollectionInternal) given: source1.visitDependencies(_) >> { TaskDependencyResolveContext context -> context.add(task1) context.add(task2) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 4.1K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/execution/TaskNameResolvingBuildTaskSchedulerSpec.groovy
def task1 = Stub(Task) def task2 = Stub(Task) def task3 = Stub(Task) def selection1 = Stub(TaskSelection) def selection2 = Stub(TaskSelection) given: _ * gradle.startParameter >> startParameters _ * startParameters.taskRequests >> [request1, request2] def tasks1 = [task1, task2] as Set _ * selection1.tasks >> tasks1
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 05 22:49:56 UTC 2022 - 3.3K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/execution/TaskNameResolverTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Oct 22 03:06:58 UTC 2022 - 7.9K bytes - Viewed (0) -
src/runtime/gcinfo_test.go
// may be larger than we expect. return } t.Errorf("bad GC program for %v:\nwant %+v\ngot %+v", name, mask0, mask) } func trimDead(mask []byte) []byte { for len(mask) > 0 && mask[len(mask)-1] == typeScalar { mask = mask[:len(mask)-1] } return mask } var infoPtr = []byte{typePointer} type Ptr struct { *byte }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 19:58:08 UTC 2023 - 6K bytes - Viewed (0)