Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 121 for atoi32 (0.24 sec)

  1. src/runtime/string.go

    		n = -n
    	}
    
    	return n, true
    }
    
    // atoi is like atoi64 but for integers
    // that fit into an int.
    func atoi(s string) (int, bool) {
    	if n, ok := atoi64(s); n == int64(int(n)) {
    		return int(n), ok
    	}
    	return 0, false
    }
    
    // atoi32 is like atoi but for integers
    // that fit into an int32.
    func atoi32(s string) (int32, bool) {
    	if n, ok := atoi64(s); n == int64(int32(n)) {
    		return int32(n), ok
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. src/runtime/runtime1.go

    		// is int, not int32, and should only be updated
    		// if specified in GODEBUG.
    		if seen == nil && key == "memprofilerate" {
    			if n, ok := atoi(value); ok {
    				MemProfileRate = n
    			}
    		} else {
    			for _, v := range dbgvars {
    				if v.name == key {
    					if n, ok := atoi32(value); ok {
    						if seen == nil && v.value != nil {
    							*v.value = n
    						} else if v.atomic != nil {
    							v.atomic.Store(n)
    						}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. src/runtime/export_test.go

    var Exitsyscall = exitsyscall
    var LockedOSThread = lockedOSThread
    var Xadduintptr = atomic.Xadduintptr
    
    var ReadRandomFailed = &readRandomFailed
    
    var Fastlog2 = fastlog2
    
    var Atoi = atoi
    var Atoi32 = atoi32
    var ParseByteCount = parseByteCount
    
    var Nanotime = nanotime
    var NetpollBreak = netpollBreak
    var Usleep = usleep
    
    var PhysPageSize = physPageSize
    var PhysHugePageSize = physHugePageSize
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  4. src/strconv/atoi.go

    		return -int64(cutoff), rangeError(fnParseInt, s0)
    	}
    	n := int64(un)
    	if neg {
    		n = -n
    	}
    	return n, nil
    }
    
    // Atoi is equivalent to ParseInt(s, 10, 0), converted to type int.
    func Atoi(s string) (int, error) {
    	const fnAtoi = "Atoi"
    
    	sLen := len(s)
    	if intSize == 32 && (0 < sLen && sLen < 10) ||
    		intSize == 64 && (0 < sLen && sLen < 19) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td

              (TF_MatMulOp $a, (TF_TransposeOp $b, (TF_SubOp (TF_RangeOp
                 /*start=*/(TF_RankOp $b),
                 /*limit=*/(TF_ConstOp TFi32<0>),
                 /*delta=*/(TF_ConstOp TFi32<-1>)), (TF_ConstOp TFi32<1>))),
               $at, ConstBoolAttrTrue, $grad_a, $grad_b)>;
    
    // Matmul with transpose on a to matmul with explicit transpose op and a not
    // transposed.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. internal/config/heal/heal.go

    	}
    	cfg.IOCount, err = strconv.Atoi(env.Get(EnvIOCount, kvs.GetWithDefault(IOCount, DefaultKVS)))
    	if err != nil {
    		return cfg, fmt.Errorf("'heal:max_io' value invalid: %w", err)
    	}
    	if ws := env.Get(EnvDriveWorkers, kvs.GetWithDefault(DriveWorkers, DefaultKVS)); ws != "" {
    		w, err := strconv.Atoi(ws)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top