Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 39 of 39 for io16 (0.04 sec)

  1. test/literal.go

    	// int16
    	var i10 int16 = 0
    	var i11 int16 = 1
    	var i12 int16 = -1
    	var i13 int16 = 32767
    	var i14 int16 = -32767
    	var i15 int16 = -32768
    	var i16 int16 = +32767
    	assert(i11 == i10+1, "i11")
    	assert(i12 == -i11, "i12")
    	assert(i13 == -i14, "i13")
    	assert(-(i15+1) == i16, "i15")
    
    	// int32
    	var i20 int32 = 0
    	var i21 int32 = 1
    	var i22 int32 = -1
    	var i23 int32 = 2147483647
    	var i24 int32 = -2147483647
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 5K bytes
    - Viewed (0)
  2. src/net/interface_plan9.go

    			}
    			var mask IPMask
    			if ip.To4() != nil { // IPv4 or IPv6 IPv4-mapped address
    				mask = CIDRMask(pfxlen-8*len(v4InV6Prefix), 8*IPv4len)
    			}
    			if ip.To16() != nil && ip.To4() == nil { // IPv6 address
    				mask = CIDRMask(pfxlen, 8*IPv6len)
    			}
    
    			addrs = append(addrs, &IPNet{IP: ip, Mask: mask})
    		}
    	}
    
    	return addrs, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  3. cmd/server-startup-msg.go

    	printObjectAPIMsg()
    }
    
    // Returns true if input is IPv6
    func isIPv6(host string) bool {
    	h, _, err := net.SplitHostPort(host)
    	if err != nil {
    		h = host
    	}
    	ip := net.ParseIP(h)
    	return ip.To16() != nil && ip.To4() == nil
    }
    
    // strip api endpoints list with standard ports such as
    // port "80" and "443" before displaying on the startup
    // banner.  Returns a new list of API endpoints.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.h

    bool IsI32F32UniformQuantizedPerAxisType(Type type);
    
    // Determines whether the storage type of a quantized type is supported by
    // `tfl.quantize` or `tfl.dequantize` ops. ui8, i8 and i16 are supported.
    bool IsSupportedByTfliteQuantizeOrDequantizeOps(IntegerType storage_type);
    
    // Returns true if a type is quantized tensor type.
    bool IsQuantizedTensorType(Type type);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. src/runtime/debuglog_test.go

    		t.Fatalf("want %q, got %q", want, got)
    	}
    }
    
    func TestDebugLogTypes(t *testing.T) {
    	skipDebugLog(t)
    	runtime.ResetDebugLog()
    	var varString = strings.Repeat("a", 4)
    	runtime.Dlog().B(true).B(false).I(-42).I16(0x7fff).U64(^uint64(0)).Hex(0xfff).P(nil).S(varString).S("const string").End()
    	got := dlogCanonicalize(runtime.DumpDebugLog())
    	if want := "[] true false -42 32767 18446744073709551615 0xfff 0x0 aaaa const string\n"; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 16:59:26 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  6. src/net/ipsock_posix.go

    	// IPv6 wildcard address.
    	if len(ip) == 0 || ip.Equal(IPv4zero) {
    		ip = IPv6zero
    	}
    	// We accept any IPv6 address including IPv4-mapped
    	// IPv6 address.
    	ip6 := ip.To16()
    	if ip6 == nil {
    		return syscall.SockaddrInet6{}, &AddrError{Err: "non-IPv6 address", Addr: ip.String()}
    	}
    	sa := syscall.SockaddrInet6{Port: port, ZoneId: uint32(zoneCache.index(zone))}
    	copy(sa.Addr[:], ip6)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  7. src/runtime/iface_test.go

    		{name: "Econstflt", fn: func() { e = 99.0 }}, // constants do not allocate
    		{name: "Econststr", fn: func() { e = "change" }},
    		{name: "I8", fn: func() { i1 = eight8I }},
    		{name: "I16", fn: func() { i1 = zero16I }},
    		{name: "I32", fn: func() { i1 = zero32I }},
    		{name: "I64", fn: func() { i1 = zero64I }},
    		{name: "Istr", fn: func() { i1 = zerostrI }},
    		{name: "Islice", fn: func() { i1 = zerosliceI }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  8. test/ken/modconst.go

    		a := int16(rand.Uint32())
    		a >>= uint(rand.Intn(16))
    		if -a != a {
    			return a
    		}
    	}
    	return 0 // impossible
    }
    
    func i16test(a, b, c int16) {
    	d := a % c
    	if d != b {
    		println("i16", a, b, c, d)
    		panic("fail")
    	}
    }
    
    func i16run() {
    	var a, b int16
    
    	for i := 0; i < Count; i++ {
    		a = i16rand()
    
    		b = a % 1
    		i16test(a, b, 1)
    		b = a % 2
    		i16test(a, b, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 08 17:28:20 UTC 2019
    - 9.2K bytes
    - Viewed (0)
  9. test/ken/divconst.go

    		a := int16(rand.Uint32())
    		a >>= uint(rand.Intn(16))
    		if -a != a {
    			return a
    		}
    	}
    	return 0 // impossible
    }
    
    func i16test(a, b, c int16) {
    	d := a / c
    	if d != b {
    		println("i16", a, b, c, d)
    		panic("fail")
    	}
    }
    
    func i16run() {
    	var a, b int16
    
    	for i := 0; i < Count; i++ {
    		a = i16rand()
    
    		b = a / 1
    		i16test(a, b, 1)
    		b = a / 2
    		i16test(a, b, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 9.2K bytes
    - Viewed (0)
Back to top