Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 287 for 0xffff (0.11 sec)

  1. test/intcvt.go

    func main() {
    	chki8(int8(i8), ci8&0xff-1<<8)
    	chki8(int8(i16), ci16&0xff)
    	chki8(int8(i32), ci32&0xff-1<<8)
    	chki8(int8(i64), ci64&0xff)
    	chki8(int8(u8), cu8&0xff-1<<8)
    	chki8(int8(u16), cu16&0xff)
    	chki8(int8(u32), cu32&0xff)
    	chki8(int8(u64), cu64&0xff)
    	//	chki8(int8(f32), 0)
    	//	chki8(int8(f64), 0)
    
    	chki16(int16(i8), ci8&0xffff-1<<16)
    	chki16(int16(i16), ci16&0xffff-1<<16)
    	chki16(int16(i32), ci32&0xffff-1<<16)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 07:47:26 UTC 2012
    - 4.3K bytes
    - Viewed (0)
  2. 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)
  3. src/runtime/defs_arm_linux.go

    	SIGSYS    = C.SIGSYS
    
    	FPE_INTDIV = C.FPE_INTDIV & 0xFFFF
    	FPE_INTOVF = C.FPE_INTOVF & 0xFFFF
    	FPE_FLTDIV = C.FPE_FLTDIV & 0xFFFF
    	FPE_FLTOVF = C.FPE_FLTOVF & 0xFFFF
    	FPE_FLTUND = C.FPE_FLTUND & 0xFFFF
    	FPE_FLTRES = C.FPE_FLTRES & 0xFFFF
    	FPE_FLTINV = C.FPE_FLTINV & 0xFFFF
    	FPE_FLTSUB = C.FPE_FLTSUB & 0xFFFF
    
    	BUS_ADRALN = C.BUS_ADRALN & 0xFFFF
    	BUS_ADRERR = C.BUS_ADRERR & 0xFFFF
    	BUS_OBJERR = C.BUS_OBJERR & 0xFFFF
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/cmd/compile/internal/ssa/rewrite_test.go

    		mask     uint64
    	}{
    		// ((x<<4)&0xFF00)<<4
    		{newPPC64ShiftAuxInt(4, 56, 63, 64), encodePPC64RotateMask(4, 0xFF00, 32), false, 0, 0},
    		// ((x>>4)&0xFF)<<4
    		{newPPC64ShiftAuxInt(4, 56, 63, 64), encodePPC64RotateMask(28, 0x0FFFFFFF, 32), true, 0, 0xFF0},
    		// ((x>>4)&0xFFFF)<<4
    		{newPPC64ShiftAuxInt(4, 48, 63, 64), encodePPC64RotateMask(28, 0xFFFF, 32), true, 0, 0xFFFF0},
    		// ((x>>4)&0xFFFF)<<17
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 21:57:02 UTC 2021
    - 6.9K bytes
    - Viewed (0)
  7. test/fixedbugs/issue9604.go

    package main
    
    var x uint16 = 0xffff
    var y uint16 = 0xfffe
    var a uint16 = 0x7000
    var b uint16 = 0x9000
    
    func main() {
    	// Make sure we truncate to smaller-width types after evaluating expressions.
    	// This is a problem for arm where there is no 16-bit comparison op.
    	if ^x != 0 {
    		panic("^uint16(0xffff) != 0")
    	}
    	if ^y != 1 {
    		panic("^uint16(0xfffe) != 1")
    	}
    	if -x != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 15 23:50:01 UTC 2015
    - 631 bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/main/java/jcifs/smb1/dcerpc/rpc.java

                int _nodes = 6;
                int _nodei = _src.index;
                _src.advance(1 * _nodes);
    
                if (node == null) {
                    if (_nodes < 0 || _nodes > 0xFFFF) throw new NdrException( NdrException.INVALID_CONFORMANCE );
                    node = new byte[_nodes];
                }
                _src = _src.derive(_nodei);
                for (int _i = 0; _i < _nodes; _i++) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 8K bytes
    - Viewed (0)
Back to top