- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 6,890 for copyFn (0.26 sec)
-
test/copy1.go
// Verify that copy arguments requirements are enforced by the // compiler. package main func main() { si := make([]int, 8) sf := make([]float64, 8) _ = copy() // ERROR "not enough arguments" _ = copy(1, 2, 3) // ERROR "too many arguments" _ = copy(si, "hi") // ERROR "have different element types(.*int.*string| int and byte)"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 04 21:22:23 UTC 2020 - 851 bytes - Viewed (0) -
src/runtime/memmove_arm64.s
STP (R12, R13), -16(R5) RET // Small copies: 1..16 bytes. copy16: ADD R1, R2, R4 // R4 points just past the last source byte ADD R0, R2, R5 // R5 points just past the last destination byte CMP $8, R2 BLT copy7 MOVD (R1), R6 MOVD -8(R4), R7 MOVD R6, (R0) MOVD R7, -8(R5) RET copy7: TBZ $2, R2, copy3 MOVWU (R1), R6 MOVWU -4(R4), R7 MOVW R6, (R0) MOVW R7, -4(R5) RET
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 18:26:13 UTC 2022 - 6K bytes - Viewed (0) -
guava/src/com/google/common/collect/SparseImmutableTable.java
// Casts without copying. ImmutableMap<C, ImmutableMap<R, V>> columnMap = this.columnMap; return ImmutableMap.<C, Map<R, V>>copyOf(columnMap); } @Override public ImmutableMap<R, Map<C, V>> rowMap() { // Casts without copying. ImmutableMap<R, ImmutableMap<C, V>> rowMap = this.rowMap; return ImmutableMap.<R, Map<C, V>>copyOf(rowMap); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 5.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/tasks/Copy.java
*/ package org.gradle.api.tasks; import org.gradle.api.InvalidUserDataException; import org.gradle.api.internal.file.copy.CopyAction; import org.gradle.api.internal.file.copy.CopySpecInternal; import org.gradle.api.internal.file.copy.DestinationRootCopySpec; import org.gradle.api.internal.file.copy.FileCopyAction; import org.gradle.work.DisableCachingByDefault; import java.io.File; /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Oct 24 23:13:41 UTC 2022 - 3.4K bytes - Viewed (0) -
test/codegen/copy.go
// ppc64x:-".*memmove" copy(x[1:], x[:]) } func movesmall7() { x := [...]byte{1, 2, 3, 4, 5, 6, 7} // 386:-".*memmove" // amd64:-".*memmove" // arm64:-".*memmove" // ppc64x:-".*memmove" copy(x[1:], x[:]) } func movesmall16() { x := [...]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16} // amd64:-".*memmove" // ppc64x:".*memmove" copy(x[1:], x[:]) } var x [256]byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 14:09:29 UTC 2023 - 3.1K bytes - Viewed (0) -
test/copy.go
func doAllSlices(length, in, out int) { reset() n := copy(my8(output8[out:clamp(out+length)]), input8[in:clamp(in+length)]) verify8(length, in, out, n) n = copy(my8(outputS[out:clamp(out+length)]), myS(inputS[in:clamp(in+length)])) verifyS(length, in, out, n) n = copy(my16(output16[out:clamp(out+length)]), input16[in:clamp(in+length)]) verify16(length, in, out, n)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 12 18:17:49 UTC 2013 - 6.6K bytes - Viewed (0) -
src/archive/zip/example_test.go
// printing some of their contents. for _, f := range r.File { fmt.Printf("Contents of %s:\n", f.Name) rc, err := f.Open() if err != nil { log.Fatal(err) } _, err = io.CopyN(os.Stdout, rc, 68) if err != nil { log.Fatal(err) } rc.Close() fmt.Println() } // Output: // Contents of README: // This is the source code repository for the Go programming language. }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 27 00:22:03 UTC 2016 - 2K bytes - Viewed (0) -
src/cmd/compile/internal/ir/copy.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ir import ( "cmd/internal/src" ) // Copy returns a shallow copy of n. func Copy(n Node) Node { return n.copy() } // DeepCopy returns a “deep” copy of n, with its entire structure copied // (except for shared nodes like ONAME, ONONAME, OLITERAL, and OTYPE).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:57:57 UTC 2023 - 1K bytes - Viewed (0) -
src/internal/trace/batch.go
} // Copy out the batch for later processing. var data bytes.Buffer data.Grow(int(size)) n, err := io.CopyN(&data, r, int64(size)) if n != int64(size) { return batch{}, gen, fmt.Errorf("failed to read full batch: read %d but wanted %d", n, size) } if err != nil { return batch{}, gen, fmt.Errorf("copying batch data: %w", err) } // Return the batch.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/jit/clone_constants_for_better_clustering.h
// would increase the amount of work on GPU 0 waiting on work on GPU 1. // However, cloning Const into two copies, one for GPU_0_Y and one for GPU_1 // will let us create one cluster containing {Const/copy_0, GPU_1} and // another containing {Const/copy_1, GPU_0_X, GPU_0_Y}. // // We only clone small host constants now to avoid increasing memory consumption // too much. Moreover, in practice the constants we have to duplicate are
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 19 23:57:44 UTC 2023 - 2.5K bytes - Viewed (0)