Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 311 for atoi32 (0.29 sec)

  1. src/runtime/proc.go

    		MemProfileRate = 0
    	}
    
    	// mcommoninit runs before parsedebugvars, so init profstacks again.
    	mProfStackInit(gp.m)
    
    	lock(&sched.lock)
    	sched.lastpoll.Store(nanotime())
    	procs := ncpu
    	if n, ok := atoi32(gogetenv("GOMAXPROCS")); ok && n > 0 {
    		procs = n
    	}
    	if procresize(procs) != nil {
    		throw("unknown runnable goroutine during bootstrap")
    	}
    	unlock(&sched.lock)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  2. cmd/api-resources.go

    	errCode = ErrNone
    
    	if values.Get("max-parts") != "" {
    		if maxParts, err = strconv.Atoi(values.Get("max-parts")); err != nil {
    			errCode = ErrInvalidMaxParts
    			return
    		}
    	} else {
    		maxParts = maxPartsList
    	}
    
    	if values.Get("part-number-marker") != "" {
    		if partNumberMarker, err = strconv.Atoi(values.Get("part-number-marker")); err != nil {
    			errCode = ErrInvalidPartNumberMarker
    			return
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jun 07 18:25:26 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/net/port_range.go

    		var port int
    		port, err = strconv.Atoi(value)
    		if err != nil {
    			return err
    		}
    		low = port
    		high = port
    	case HyphenNotation:
    		low, err = strconv.Atoi(value[:hyphenIndex])
    		if err != nil {
    			return err
    		}
    		high, err = strconv.Atoi(value[hyphenIndex+1:])
    		if err != nil {
    			return err
    		}
    	case PlusNotation:
    		var offset int
    		low, err = strconv.Atoi(value[:plusIndex])
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 10 01:27:56 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/swig/swig_test.go

    		return
    	}
    
    	var parseError error
    	atoi := func(s string) int {
    		x, err := strconv.Atoi(s)
    		if err != nil && parseError == nil {
    			parseError = err
    		}
    		return x
    	}
    	var major, minor, patch int
    	major = atoi(string(matches[1]))
    	if len(matches[2]) > 0 {
    		minor = atoi(string(matches[2][1:]))
    	}
    	if len(matches[3]) > 0 {
    		patch = atoi(string(matches[3][1:]))
    	}
    	if parseError != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. test/fixedbugs/bug262.go

    	var i int
    	return &i
    }
    
    func main() {
    	m := make(map[string]int)
    	m[f()], *g() = strconv.Atoi(h())
    	if m["abc"] != 123 || trace != "fgh" {
    		println("BUG", m["abc"], trace)
    		panic("fail")
    	}
    	mm := make(map[string]error)
    	trace = ""
    	mm["abc"] = errors.New("invalid")
    	*i(), mm[f()] = strconv.Atoi(h())
    	if mm["abc"] != nil || trace != "ifh" {
    		println("BUG1", mm["abc"], trace)
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:59 UTC 2012
    - 823 bytes
    - Viewed (0)
  6. internal/config/ilm/ilm.go

    	}
    
    	if err = config.CheckValidKeys(config.ILMSubSys, kvs, DefaultKVS); err != nil {
    		return cfg, err
    	}
    
    	tw, err := strconv.Atoi(env.Get(EnvILMTransitionWorkers, kvs.GetWithDefault(transitionWorkers, DefaultKVS)))
    	if err != nil {
    		return cfg, err
    	}
    
    	ew, err := strconv.Atoi(env.Get(EnvILMExpirationWorkers, kvs.GetWithDefault(expirationWorkers, DefaultKVS)))
    	if err != nil {
    		return cfg, err
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. src/crypto/internal/hpke/hpke_test.go

    		t.Run(vector.Name, func(t *testing.T) {
    			setup := parseVectorSetup(vector.Setup)
    
    			kemID, err := strconv.Atoi(setup["kem_id"])
    			if err != nil {
    				t.Fatal(err)
    			}
    			if _, ok := SupportedKEMs[uint16(kemID)]; !ok {
    				t.Skip("unsupported KEM")
    			}
    			kdfID, err := strconv.Atoi(setup["kdf_id"])
    			if err != nil {
    				t.Fatal(err)
    			}
    			if _, ok := SupportedKDFs[uint16(kdfID)]; !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/strconv/strconv_test.go

    		return func(t *testing.T) {
    			t.Helper()
    			if allocs := testing.AllocsPerRun(runsPerTest, f); allocs != 0 {
    				t.Errorf("got %v allocs, want 0 allocs", allocs)
    			}
    		}
    	}
    
    	t.Run("Atoi", checkNoAllocs(func() {
    		Sink.Int, Sink.Error = Atoi(string(bytes.Number))
    	}))
    	t.Run("ParseBool", checkNoAllocs(func() {
    		Sink.Bool, Sink.Error = ParseBool(string(bytes.Bool))
    	}))
    	t.Run("ParseInt", checkNoAllocs(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 20:29:22 UTC 2022
    - 4.7K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/sys/cpu/parse.go

    			rel = rel[:i]
    			break
    		}
    	}
    
    	next := func() (int, bool) {
    		for i := 0; i < len(rel); i++ {
    			if rel[i] == '.' {
    				ver, err := strconv.Atoi(rel[:i])
    				rel = rel[i+1:]
    				return ver, err == nil
    			}
    		}
    		ver, err := strconv.Atoi(rel)
    		rel = ""
    		return ver, err == nil
    	}
    	if major, ok = next(); !ok || rel == "" {
    		return
    	}
    	if minor, ok = next(); !ok || rel == "" {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 17:48:21 UTC 2023
    - 1K bytes
    - Viewed (0)
  10. src/fmt/stringer_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package fmt_test
    
    import (
    	. "fmt"
    	"testing"
    )
    
    type TI int
    type TI8 int8
    type TI16 int16
    type TI32 int32
    type TI64 int64
    type TU uint
    type TU8 uint8
    type TU16 uint16
    type TU32 uint32
    type TU64 uint64
    type TUI uintptr
    type TF float64
    type TF32 float32
    type TF64 float64
    type TB bool
    type TS string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.1K bytes
    - Viewed (0)
Back to top