- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 647 for overflows (0.17 sec)
-
src/runtime/malloc.go
// See go.dev/issue/67401. // //go:linkname newarray func newarray(typ *_type, n int) unsafe.Pointer { if n == 1 { return mallocgc(typ.Size_, typ, true) } mem, overflow := math.MulUintptr(typ.Size_, uintptr(n)) if overflow || mem > maxAlloc || n < 0 { panic(plainError("runtime: allocation size out of range")) } return mallocgc(mem, typ, true) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 59.6K bytes - Viewed (0) -
doc/go1.17_spec.html
discard high bits upon overflow, and programs may rely on "wrap around". </p> <p> For signed integers, the operations <code>+</code>, <code>-</code>, <code>*</code>, <code>/</code>, and <code><<</code> may legally overflow and the resulting value exists and is deterministically defined by the signed integer representation, the operation, and its operands.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0) -
src/runtime/internal/math/math.go
const MaxUintptr = ^uintptr(0) // MulUintptr returns a * b and whether the multiplication overflowed. // On supported platforms this is an intrinsic lowered by the compiler. func MulUintptr(a, b uintptr) (uintptr, bool) { if a|b < 1<<(4*goarch.PtrSize) || a == 0 { return a * b, false } overflow := b > MaxUintptr/a return a * b, overflow } // Mul64 returns the 128-bit product of x and y: (hi, lo) = x * y
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 16:03:04 UTC 2023 - 1.7K bytes - Viewed (0) -
doc/go_spec.html
discard high bits upon overflow, and programs may rely on "wrap around". </p> <p> For signed integers, the operations <code>+</code>, <code>-</code>, <code>*</code>, <code>/</code>, and <code><<</code> may legally overflow and the resulting value exists and is deterministically defined by the signed integer representation, the operation, and its operands.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (1) -
src/runtime/map_fast64.go
if k != key { continue } insertb = b inserti = i goto done } ovf := b.overflow(t) if ovf == nil { break } b = ovf } // Did not find mapping for key. Allocate new cell & add entry. // If we hit the max load factor or we have too many overflow buckets, // and we're not already in the middle of growing, start growing.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 14.1K bytes - Viewed (0) -
src/runtime/map_fast32.go
if k != key { continue } inserti = i insertb = b goto done } ovf := b.overflow(t) if ovf == nil { break } b = ovf } // Did not find mapping for key. Allocate new cell & add entry. // If we hit the max load factor or we have too many overflow buckets, // and we're not already in the middle of growing, start growing.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.9K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/loopbce.go
} return uint64(x - y) } // addU returns x+y. Requires that x+y does not overflow an int64. func addU(x int64, y uint64) int64 { if y >= 1<<63 { if x >= 0 { base.Fatalf("addU overflowed %d + %d", x, y) } x += 1<<63 - 1 x += 1 y -= 1 << 63 } if addWillOverflow(x, int64(y)) { base.Fatalf("addU overflowed %d + %d", x, y) } return x + int64(y) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 07 17:37:47 UTC 2023 - 11.8K bytes - Viewed (0) -
src/cmd/internal/obj/s390x/asmz.go
case 71: // cmp reg $constant v := c.vregoff(&p.To) switch p.As { case ACMP, ACMPW: if int64(int32(v)) != v { c.ctxt.Diag("%v overflows an int32", v) } case ACMPU, ACMPWU: if int64(uint32(v)) != v { c.ctxt.Diag("%v overflows a uint32", v) } } if p.As == ACMP && int64(int16(v)) == v { zRI(op_CGHI, uint32(p.From.Reg), uint32(v), asm)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 17:46:09 UTC 2024 - 176.7K bytes - Viewed (0) -
src/syscall/tables_wasip1.go
ENETDOWN: "Network interface is not configured", ENETRESET: "Network dropped connection on reset", ENETUNREACH: "Network is unreachable", ENFILE: "File table overflow", ENOBUFS: "No buffer space available", ENODEV: "No such device", ENOENT: "No such file or directory", ENOEXEC: "Exec format error", ENOLCK: "No record locks available",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 06 20:58:35 UTC 2023 - 6.5K bytes - Viewed (0) -
src/runtime/map_faststr.go
// The size is already guaranteed to be set correctly. k.str = key.str goto done } ovf := b.overflow(t) if ovf == nil { break } b = ovf } // Did not find mapping for key. Allocate new cell & add entry. // If we hit the max load factor or we have too many overflow buckets, // and we're not already in the middle of growing, start growing.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 15.3K bytes - Viewed (0)