- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 722 for rounds (0.19 sec)
-
src/net/tcpsockopt_darwin.go
if d == 0 { d = defaultTCPKeepAliveIdle } else if d < 0 { return nil } // The kernel expects seconds so round to next highest second. secs := int(roundDurationUp(d, time.Second)) err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, syscall.TCP_KEEPALIVE, secs) runtime.KeepAlive(fd) return wrapSyscallError("setsockopt", err) } func setKeepAliveInterval(fd *netFD, d time.Duration) error { if d == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 1.4K bytes - Viewed (0) -
src/strconv/decimal.go
return a.d[nd] >= '5' } // Round a to nd digits (or fewer). // If nd is zero, it means we're rounding // just to the left of the digits, as in // 0.09 -> 0.1. func (a *decimal) Round(nd int) { if nd < 0 || nd >= a.nd { return } if shouldRoundUp(a, nd) { a.RoundUp(nd) } else { a.RoundDown(nd) } } // Round a down to nd digits (or fewer).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jul 15 19:41:25 UTC 2017 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.h
namespace mlir { namespace TF { // Returns whether type can be further refined. bool CanBeRefined(Type type); // Returns a new arg type based on the shape and element type. If there are // dynamic bounds attribute to the arg, update the bounds based on the shape // as well. Type GetNewArgType(Type old_arg_type, ArrayRef<int64_t> shape, Type element_type, mlir::MLIRContext* context);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 3.5K bytes - Viewed (0) -
test/fixedbugs/issue27289.go
// run // Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Make sure we don't prove that the bounds check failure branch is unreachable. package main //go:noinline func f(a []int) { _ = a[len(a)-1] } func main() { defer func() { if err := recover(); err != nil { return } panic("f should panic")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 31 08:54:38 UTC 2018 - 437 bytes - Viewed (0) -
test/fixedbugs/issue4348.go
// skip // Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Issue 4348. After switch to 64-bit ints the compiler generates // illegal instructions when using large array bounds or indexes. // Skip. We reject symbols larger that 2GB (Issue #9862). package main // 1<<32 on a 64-bit machine, 1 otherwise. const LARGE = ^uint(0)>>32 + 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 18:51:03 UTC 2020 - 584 bytes - Viewed (0) -
pkg/apis/autoscaling/v2/conversion.go
if err := autoConvert_autoscaling_HorizontalPodAutoscaler_To_v2_HorizontalPodAutoscaler(in, out, s); err != nil { return err } // v2 round-trips to internal without any serialized annotations, make sure any from other versions don't get serialized out.Annotations, _ = autoscaling.DropRoundTripHorizontalPodAutoscalerAnnotations(out.Annotations) return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 09 02:34:54 UTC 2021 - 1.8K bytes - Viewed (0) -
test/checkbce.go
useInt(a[uint(i*0x07C4ACDD)>>59]) // The following bounds should not be removed because they can overflow. useInt(a[uint32(i*0x106297f105d0cc86)>>26]) // ERROR "Found IsInBounds$" useInt(b[uint64(i*0x106297f105d0cc86)>>57]) // ERROR "Found IsInBounds$" useInt(a[int32(i*0x106297f105d0cc86)>>26]) // ERROR "Found IsInBounds$" useInt(b[int64(i*0x106297f105d0cc86)>>57]) // ERROR "Found IsInBounds$" } func g1(a []int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 3.7K bytes - Viewed (0) -
src/net/tcpsockopt_windows.go
if !windows.SupportTCPKeepAliveIdle() { return setKeepAliveIdleAndInterval(fd, d, -1) } if d == 0 { d = defaultTCPKeepAliveIdle } else if d < 0 { return nil } // The kernel expects seconds so round to next highest second. secs := int(roundDurationUp(d, time.Second)) err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, windows.TCP_KEEPIDLE, secs) runtime.KeepAlive(fd) return os.NewSyscallError("setsockopt", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:35 UTC 2024 - 3.8K bytes - Viewed (0) -
build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiTypeProvider.kt
private fun ApiTypeProvider.Context.apiTypeParametersFor(visitedSignature: BaseSignatureVisitor?): List<ApiTypeUsage> = visitedSignature?.typeParameters?.map { (binaryName, bounds) -> apiTypeUsageFor(binaryName, bounds = bounds) } ?: emptyList() private fun ApiTypeProvider.Context.apiFunctionParametersFor(function: ApiFunction, delegate: MethodNode, visitedSignature: MethodSignatureVisitor?) =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 06 19:56:10 UTC 2024 - 20.8K bytes - Viewed (0) -
src/runtime/panic.go
panicCheck1(getcallerpc(), "slice bounds out of range") panic(boundsError{x: int64(x), signed: true, y: y, code: boundsSlice3Alen}) } func goPanicSlice3AlenU(x uint, y int) { panicCheck1(getcallerpc(), "slice bounds out of range") panic(boundsError{x: int64(x), signed: false, y: y, code: boundsSlice3Alen}) } func goPanicSlice3Acap(x int, y int) { panicCheck1(getcallerpc(), "slice bounds out of range")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 43.8K bytes - Viewed (0)