- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 311 for atoi32 (0.32 sec)
-
src/runtime/string_test.go
test := &atoi32tests[i] out, ok := runtime.Atoi(test.in) if test.out != int32(out) || test.ok != ok { t.Errorf("atoi(%q) = (%v, %v) want (%v, %v)", test.in, out, ok, test.out, test.ok) } } case 64: for i := range atoi64tests { test := &atoi64tests[i] out, ok := runtime.Atoi(test.in) if test.out != int64(out) || test.ok != ok { t.Errorf("atoi(%q) = (%v, %v) want (%v, %v)",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 13 14:05:23 UTC 2022 - 13.3K bytes - Viewed (0) -
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) -
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) -
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) -
src/runtime/mgcpacer.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 55.4K bytes - Viewed (0) -
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) -
src/strconv/fp_test.go
// itself, passes the rest on to strconv.ParseFloat. func myatof32(s string) (f float32, ok bool) { if mant, exp, ok := strings.Cut(s, "p"); ok { n, err := strconv.Atoi(mant) if err != nil { println("bad n", mant) return 0, false } e, err1 := strconv.Atoi(exp) if err1 != nil { println("bad p", exp) return 0, false } return float32(float64(n) * pow2(e)), true } f64, err1 := strconv.ParseFloat(s, 32)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 06 15:53:04 UTC 2021 - 2.9K bytes - Viewed (0) -
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) -
src/net/mac.go
var ok bool if hw[i], ok = xtoi2(s[x:], s[2]); !ok { goto error } x += 3 } } else if s[4] == '.' { if (len(s)+1)%5 != 0 { goto error } n := 2 * (len(s) + 1) / 5 if n != 6 && n != 8 && n != 20 { goto error } hw = make(HardwareAddr, n) for x, i := 0, 0; i < n; i += 2 { var ok bool if hw[i], ok = xtoi2(s[x:x+2], 0); !ok { goto error }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 1.9K bytes - Viewed (0) -
test/ken/convert.go
{ tu16, ti32, 10 }, { tu16, tu32, 10 }, { tu16, ti64, 10 }, { tu16, tu64, 10 }, { tu16, tf32, 10 }, { tu16, tf64, 10 }, { ti32, ti8, 10 }, { ti32, tu8, 10 }, { ti32, ti16, 10 }, { ti32, tu16, 10 }, { ti32, ti32, 10 }, { ti32, tu32, 10 }, { ti32, ti64, 10 }, { ti32, tu64, 10 }, { ti32, tf32, 10 }, { ti32, tf64, 10 }, { tu32, ti8, 10 }, { tu32, tu8, 10 }, { tu32, ti16, 10 }, { tu32, tu16, 10 },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 05:24:24 UTC 2012 - 14.9K bytes - Viewed (0)