- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,338 for swapped (0.33 sec)
-
src/go/types/builtins.go
types = append(types, typ) if size >= 0 { sizes = append(sizes, size) } } if len(sizes) == 2 && sizes[0] > sizes[1] { check.error(argList[1], SwappedMakeArgs, invalidArg+"length and capacity swapped") // safe to continue } x.mode = value x.typ = T if check.recordTypes() { check.recordBuiltinType(call.Fun, makeSig(x.typ, types...)) } case _Max, _Min: // max(x, ...)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.2K bytes - Viewed (0) -
src/internal/types/testdata/check/builtins0.go
_ = make([]int, - /* ERROR "must not be negative" */ 1, - /* ERROR "must not be negative" */ 1) _ = make([]int, 1 /* ERROR "overflows" */ <<100, 1 /* ERROR "overflows" */ <<100) _ = make([]int, 10 /* ERROR "length and capacity swapped" */ , 9) _ = make([]int, 1 /* ERROR "overflows" */ <<100, 12345) _ = make([]int, m /* ERROR "must be integer" */ ) _ = &make /* ERROR "cannot take address" */ ([]int, 0) // maps
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc
if (!IsRankedInt(op_input->getResult(0), 8)) return false; return true; } // Convert an einsum equation into XLA Dot Dimension Numbers. // If the return flag is true, the arguments for XlaDotV2 should be swapped. xla::DotDimensionNumbers ConvertEinsumEquationIntoXlaDotDimensionNumbers( const StringRef equation) { xla::DotDimensionNumbers dnums; // 1. Parse the given equation.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 47.1K bytes - Viewed (0) -
doc/go_mem.html
<p class="rule"> A receive from an unbuffered channel is synchronized before the completion of the corresponding send on that channel. </p> <p> This program (as above, but with the send and receive statements swapped and using an unbuffered channel): </p> <pre> var c = make(chan int) var a string func f() { a = "hello, world" <-c } func main() { go f() c <- 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 15:54:42 UTC 2024 - 26.6K bytes - Viewed (0) -
src/internal/reflectlite/swapper.go
import ( "internal/goarch" "internal/unsafeheader" "unsafe" ) // Swapper returns a function that swaps the elements in the provided // slice. // // Swapper panics if the provided interface is not a slice. func Swapper(slice any) func(i, j int) { v := ValueOf(slice) if v.Kind() != Slice { panic(&ValueError{Method: "Swapper", Kind: v.Kind()}) } // Fast path for slices of size 0 and 1. Nothing to swap.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:30 UTC 2024 - 2K bytes - Viewed (0) -
src/reflect/swapper.go
import ( "internal/abi" "internal/goarch" "internal/unsafeheader" "unsafe" ) // Swapper returns a function that swaps the elements in the provided // slice. // // Swapper panics if the provided interface is not a slice. func Swapper(slice any) func(i, j int) { v := ValueOf(slice) if v.Kind() != Slice { panic(&ValueError{Method: "Swapper", Kind: v.Kind()}) } // Fast path for slices of size 0 and 1. Nothing to swap.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:30 UTC 2024 - 2K bytes - Viewed (0) -
src/go/printer/printer.go
if p.indent < 0 { p.internalError("negative indentation:", p.indent) p.indent = 0 } case newline, formfeed: // A line break immediately followed by a "correcting" // unindent is swapped with the unindent - this permits // proper label positioning. If a comment is between // the line break and the label, the unindent is not // part of the comment whitespace prefix and the comment
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 41.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/rulegen.go
} } if succChanged { if len(succs) != 2 { log.Fatalf("changed successors, len!=2 in %s", rule) } if succs[0] != newsuccs[1] || succs[1] != newsuccs[0] { log.Fatalf("can only handle swapped successors in %s", rule) } rr.add(stmtf("b.swapSuccessors()")) } if *genLog { rr.add(stmtf("logRule(%q)", rule.Loc)) } return rr }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 02 22:09:21 UTC 2023 - 48.7K bytes - Viewed (0) -
src/runtime/mbitmap.go
// ordering needs to match the same byte ordering the compiler would emit. The compiler always // emits the bitmap data in little endian byte ordering, so on big endian platforms these // uintptrs will have their byte orders swapped from what they normally would be. // // heapBitsInSpan(span.elemsize) or span.isUserArenaChunk must be true. // //go:nosplit func (span *mspan) heapBits() []uintptr { const doubleCheck = false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 60K bytes - Viewed (0) -
src/go/types/api_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0)