Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for dtoi (0.05 sec)

  1. src/net/http/client_test.go

    func testClientRedirects(t *testing.T, mode testMode) {
    	var ts *httptest.Server
    	ts = newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		n, _ := strconv.Atoi(r.FormValue("n"))
    		// Test Referer header. (7 is arbitrary position to test at)
    		if n == 7 {
    			if g, e := r.Referer(), ts.URL+"/?n=6"; e != g {
    				t.Errorf("on request ?n=7, expected referer of %q; got %q", e, g)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  2. src/cmd/go/go_test.go

    	upxVersion := re.FindStringSubmatch(string(out))
    	if len(upxVersion) != 3 {
    		t.Fatalf("bad upx version string: %s", upxVersion)
    	}
    
    	major, err1 := strconv.Atoi(upxVersion[1])
    	minor, err2 := strconv.Atoi(upxVersion[2])
    	if err1 != nil || err2 != nil {
    		t.Fatalf("bad upx version string: %s", upxVersion[0])
    	}
    
    	// Anything below 3.94 is known not to work with go binaries
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 81.1K bytes
    - Viewed (0)
  3. pkg/proxy/winkernel/proxier.go

    	var healthzPort int
    	if len(healthzBindAddress) > 0 {
    		_, port, _ := net.SplitHostPort(healthzBindAddress)
    		healthzPort, _ = strconv.Atoi(port)
    	}
    
    	hcnImpl := newHcnImpl()
    	hns, supportedFeatures := newHostNetworkService(hcnImpl)
    	hnsNetworkName, err := getNetworkName(config.NetworkName)
    	if err != nil {
    		return nil, err
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 59K bytes
    - Viewed (0)
  4. src/regexp/testdata/testregex.c

    {
    	Disc_t*		dp = (Disc_t*)disc;
    
    	sfprintf(dp->sp, "{%-.*s}(%lu:%d)", xlen, xstr, (char*)data - (char*)0, slen);
    	return atoi(xstr);
    }
    
    static void*
    resizef(void* handle, void* data, size_t size)
    {
    	if (!size)
    		return 0;
    	return stkalloc((Sfio_t*)handle, size);
    }
    
    #endif
    
    #ifndef NiL
    #ifdef	__STDC__
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/listener.go

    func (lb *ListenerBuilder) buildHTTPProxy(node *model.Proxy,
    	push *model.PushContext,
    ) *listener.Listener {
    	httpProxyPort := push.Mesh.ProxyHttpPort // global
    	if node.Metadata.HTTPProxyPort != "" {
    		port, err := strconv.Atoi(node.Metadata.HTTPProxyPort)
    		if err == nil {
    			httpProxyPort = int32(port)
    		}
    	}
    	if httpProxyPort == 0 {
    		return nil
    	}
    	ph := GetProxyHeaders(node, push, istionetworking.ListenerClassSidecarOutbound)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 06 04:44:06 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/arm/asm5.go

    	case AMOVD:
    		return o | 0xe<<24 | 0xb<<20 | 0<<16 | 0xb<<8 | 4<<4
    
    	case AMOVDF:
    		return o | 0xe<<24 | 0xb<<20 | 7<<16 | 0xa<<8 | 0xc<<4 | 1<<8 // dtof
    	case AMOVFD:
    		return o | 0xe<<24 | 0xb<<20 | 7<<16 | 0xa<<8 | 0xc<<4 | 0<<8 // dtof
    
    	case AMOVWF:
    		if sc&C_UBIT == 0 {
    			o |= 1 << 7 /* signed */
    		}
    		return o | 0xe<<24 | 0xb<<20 | 8<<16 | 0xa<<8 | 4<<4 | 0<<18 | 0<<8 // toint, double
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 20:51:01 UTC 2023
    - 79.4K bytes
    - Viewed (0)
  7. pkg/kubelet/kuberuntime/kuberuntime_container.go

    	for _, file := range files {
    		if file.IsDir() {
    			continue
    		}
    		matches := restartCountLogFileRegex.FindStringSubmatch(file.Name())
    		if len(matches) == 0 {
    			continue
    		}
    		count, err := strconv.Atoi(matches[1])
    		if err != nil {
    			// unlikely kubelet created this file,
    			// likely custom file with random numbers as a name
    			continue
    		}
    		count++
    		if count > restartCount {
    			restartCount = count
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
  8. src/encoding/json/decode_test.go

    }
    
    var errMissingU8Prefix = errors.New("missing 'u' prefix")
    
    func (u8 *u8marshal) UnmarshalText(b []byte) error {
    	if !bytes.HasPrefix(b, []byte{'u'}) {
    		return errMissingU8Prefix
    	}
    	n, err := strconv.Atoi(string(b[1:]))
    	if err != nil {
    		return err
    	}
    	*u8 = u8marshal(n)
    	return nil
    }
    
    var _ encoding.TextUnmarshaler = (*u8marshal)(nil)
    
    var (
    	umtrue   = unmarshaler{true}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  9. src/cmd/link/internal/ppc64/asm.go

    	case "savevr", "restvr":
    		minReg = 20 // _savevr_{n} or _restvr_{n}, 20 <= n <= 31
    		offMul = 8  // 2 instructions per register op.
    	default:
    		return 0, false // Not an abi func
    	}
    	n, e := strconv.Atoi(s[2])
    	if e != nil || n < minReg || n > 31 || r.Add() != 0 {
    		return 0, false // Invalid register number, or non-zero addend. Not an abi func.
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 20:54:08 UTC 2024
    - 63.7K bytes
    - Viewed (0)
  10. src/testing/testing.go

    		m.timer.Stop()
    	}
    }
    
    func parseCpuList() {
    	for _, val := range strings.Split(*cpuListStr, ",") {
    		val = strings.TrimSpace(val)
    		if val == "" {
    			continue
    		}
    		cpu, err := strconv.Atoi(val)
    		if err != nil || cpu <= 0 {
    			fmt.Fprintf(os.Stderr, "testing: invalid value %q for -test.cpu\n", val)
    			os.Exit(1)
    		}
    		cpuList = append(cpuList, cpu)
    	}
    	if cpuList == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top