- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 191 for 0xffff (0.16 sec)
-
src/image/color/color.go
return c } r, g, b, a := c.RGBA() if a == 0xffff { return NRGBA64{uint16(r), uint16(g), uint16(b), 0xffff} } if a == 0 { return NRGBA64{0, 0, 0, 0} } // Since Color.RGBA returns an alpha-premultiplied color, we should have r <= a && g <= a && b <= a. r = (r * 0xffff) / a g = (g * 0xffff) / a b = (b * 0xffff) / a return NRGBA64{uint16(r), uint16(g), uint16(b), uint16(a)} }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 8.3K bytes - Viewed (0) -
src/image/color/ycbcr.go
// returns values in the range [0, 0xffff] instead of [0, 0xff]. w := 0xffff - uint32(c.K)*0x101 r := (0xffff - uint32(c.C)*0x101) * w / 0xffff g := (0xffff - uint32(c.M)*0x101) * w / 0xffff b := (0xffff - uint32(c.Y)*0x101) * w / 0xffff return r, g, b, 0xffff } // CMYKModel is the [Model] for CMYK colors. var CMYKModel Model = ModelFunc(cmykModel) func cmykModel(c Color) Color { if _, ok := c.(CMYK); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 10.8K bytes - Viewed (0) -
src/unicode/utf16/utf16_test.go
} var encodeTests = []encodeTest{ {[]rune{1, 2, 3, 4}, []uint16{1, 2, 3, 4}}, {[]rune{0xffff, 0x10000, 0x10001, 0x12345, 0x10ffff}, []uint16{0xffff, 0xd800, 0xdc00, 0xd800, 0xdc01, 0xd808, 0xdf45, 0xdbff, 0xdfff}}, {[]rune{'a', 'b', 0xd7ff, 0xd800, 0xdfff, 0xe000, 0x110000, -1}, []uint16{'a', 'b', 0xd7ff, 0xfffd, 0xfffd, 0xe000, 0xfffd, 0xfffd}}, } func TestEncode(t *testing.T) { for _, tt := range encodeTests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:48 UTC 2024 - 6.5K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsRecordCodec.kt
val flags = buf.readShort().toInt() and 0xffff require(flags shr 15 != 0) { "not a response" } val responseCode = flags and 0xf if (responseCode == NXDOMAIN) { throw UnknownHostException("$hostname: NXDOMAIN") } else if (responseCode == SERVFAIL) { throw UnknownHostException("$hostname: SERVFAIL") } val questionCount = buf.readShort().toInt() and 0xffff
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/dev_aix_ppc.go
package unix // Major returns the major component of a Linux device number. func Major(dev uint64) uint32 { return uint32((dev >> 16) & 0xffff) } // Minor returns the minor component of a Linux device number. func Minor(dev uint64) uint32 { return uint32(dev & 0xffff) } // Mkdev returns a Linux device number generated from the given major and minor // components. func Mkdev(major, minor uint32) uint64 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 739 bytes - Viewed (0) -
src/internal/bytealg/compare_amd64.s
big_loop: MOVOU (SI), X0 MOVOU (DI), X1 PCMPEQB X0, X1 PMOVMSKB X1, AX XORQ $0xffff, AX JNE diff16 MOVOU 16(SI), X0 MOVOU 16(DI), X1 PCMPEQB X0, X1 PMOVMSKB X1, AX XORQ $0xffff, AX JNE diff32 MOVOU 32(SI), X0 MOVOU 32(DI), X1 PCMPEQB X0, X1 PMOVMSKB X1, AX XORQ $0xffff, AX JNE diff48 MOVOU 48(SI), X0 MOVOU 48(DI), X1 PCMPEQB X0, X1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 18 17:17:01 UTC 2022 - 4.3K bytes - Viewed (0) -
test/fixedbugs/issue66066b.go
println("bad f16", got) } if got := f8(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1); got != 0xff { println("bad f8", got) } if got := g32(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xffffffff); got != -1 { println("bad g32", got) } if got := g16(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xffff); got != -1 { println("bad g16", got) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 17:35:29 UTC 2024 - 1.5K bytes - Viewed (0) -
src/runtime/netpoll_wasip1.go
unlock(&mtx) return 0 } const disarmed = 0xFFFF func netpollarm(pd *pollDesc, mode int) { lock(&mtx) var s subscription s.userdata = userdata(uintptr(unsafe.Pointer(pd))) fdReadwrite := s.u.subscriptionFdReadwrite() fdReadwrite.fd = int32(pd.fd) ridx := int(pd.user >> 16) widx := int(pd.user & 0xFFFF)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 6.1K bytes - Viewed (0) -
src/internal/syscall/windows/reparse_windows.go
} // Path returns path stored in rb. func (rb *SymbolicLinkReparseBuffer) Path() string { n1 := rb.SubstituteNameOffset / 2 n2 := (rb.SubstituteNameOffset + rb.SubstituteNameLength) / 2 return syscall.UTF16ToString((*[0xffff]uint16)(unsafe.Pointer(&rb.PathBuffer[0]))[n1:n2:n2]) } type MountPointReparseBuffer struct { // The integer that contains the offset, in bytes, // of the substitute name string in the PathBuffer array,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 12 07:15:06 UTC 2024 - 3.4K bytes - Viewed (0) -
src/image/geom.go
} return color.Transparent } // RGBA64At implements the [RGBA64Image] interface. func (r Rectangle) RGBA64At(x, y int) color.RGBA64 { if (Point{x, y}).In(r) { return color.RGBA64{0xffff, 0xffff, 0xffff, 0xffff} } return color.RGBA64{} } // Bounds implements the [Image] interface. func (r Rectangle) Bounds() Rectangle { return r } // ColorModel implements the [Image] interface.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:45 UTC 2023 - 7.3K bytes - Viewed (0)