- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 701 for 1034 (0.22 sec)
-
src/cmd/compile/internal/reflectdata/alg_test.go
for i := 0; i < 64; i++ { a[i] = "aaaa" c[i] = "cccc" } for j := 0; j < b.N; j++ { _ = a == c } } func BenchmarkEqArrayOfStrings1024(b *testing.B) { var a [1024]string var c [1024]string for i := 0; i < 1024; i++ { a[i] = "aaaa" c[i] = "cccc" } for j := 0; j < b.N; j++ { _ = a == c } } func BenchmarkEqArrayOfFloats5(b *testing.B) { var a [5]float32
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 21:55:14 UTC 2023 - 2.1K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue49247.go
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr } func Add1024[T integer](s []T) { for i, v := range s { s[i] = v + 1024 // ERROR "cannot convert 1024 (untyped int constant) to type T" } } func f[T interface{ int8 }]() { println(T(1024 /* ERROR "cannot convert 1024 (untyped int value) to type T" */))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 560 bytes - Viewed (0) -
platforms/core-runtime/process-services/src/main/java/org/gradle/process/internal/health/memory/MemoryAmount.java
import javax.annotation.Nullable; import java.util.Locale; public class MemoryAmount { private static final long KILO_FACTOR = 1024; private static final long MEGA_FACTOR = KILO_FACTOR * 1024; private static final long GIGA_FACTOR = MEGA_FACTOR * 1024; private static final long TERA_FACTOR = GIGA_FACTOR * 1024; public static MemoryAmount of(long bytes) { return new MemoryAmount(bytes, String.valueOf(bytes)); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:10:02 UTC 2023 - 4.1K bytes - Viewed (0) -
guava/src/com/google/common/escape/Platform.java
private Platform() {} /** Returns a thread-local 1024-char array. */ static char[] charBufferFromThreadLocal() { // requireNonNull accommodates Android's @RecentlyNullable annotation on ThreadLocal.get return requireNonNull(DEST_TL.get()); } /** * A thread-local destination buffer to keep us from creating new buffers. The starting size is
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Dec 15 19:31:54 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/internal/obj/riscv/inst.go
case AAMOMINW: return &inst{0x2f, 0x2, 0x0, -2048, 0x40} case AAMOMINUD: return &inst{0x2f, 0x3, 0x0, -1024, 0x60} case AAMOMINUW: return &inst{0x2f, 0x2, 0x0, -1024, 0x60} case AAMOORD: return &inst{0x2f, 0x3, 0x0, 1024, 0x20} case AAMOORW: return &inst{0x2f, 0x2, 0x0, 1024, 0x20} case AAMOSWAPD: return &inst{0x2f, 0x3, 0x0, 128, 0x4} case AAMOSWAPW: return &inst{0x2f, 0x2, 0x0, 128, 0x4}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 14:19:33 UTC 2024 - 13.9K bytes - Viewed (0) -
src/cmd/compile/internal/test/testdata/mergelocals/integration.go
package p // This type and the following one will share the same GC shape and size. type Pointery struct { p *Pointery x [1024]int } type Pointery2 struct { p *Pointery2 x [1024]int } // This type and the following one will have the same size. type Vanilla struct { np uintptr x [1024]int } type Vanilla2 struct { np uintptr x [1023]int y int } type Single struct { np uintptr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 17:42:19 UTC 2024 - 1.3K bytes - Viewed (0) -
src/internal/poll/writev.go
} var iovecs []syscall.Iovec if fd.iovecs != nil { iovecs = *fd.iovecs } // TODO: read from sysconf(_SC_IOV_MAX)? The Linux default is // 1024 and this seems conservative enough for now. Darwin's // UIO_MAXIOV also seems to be 1024. maxVec := 1024 if runtime.GOOS == "aix" || runtime.GOOS == "solaris" { // IOV_MAX is set to XOPEN_IOV_MAX on AIX and Solaris. maxVec = 16 } var n int64 var err error
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 1.8K bytes - Viewed (0) -
src/crypto/internal/edwards25519/scalar_test.go
} if err := quick.Check(f1, quickCheckConfig(1024)); err != nil { t.Errorf("failed bytes->scalar->bytes round-trip: %v", err) } f2 := func(sc1, sc2 Scalar) bool { if _, err := sc2.SetCanonicalBytes(sc1.Bytes()); err != nil { return false } return sc1 == sc2 } if err := quick.Check(f2, quickCheckConfig(1024)); err != nil { t.Errorf("failed scalar->bytes->scalar round-trip: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 28 17:26:17 UTC 2023 - 7.6K bytes - Viewed (0) -
internal/ringbuffer/ring_buffer_benchmark_test.go
) func BenchmarkRingBuffer_Sync(b *testing.B) { rb := New(1024) data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512) b.ResetTimer() for i := 0; i < b.N; i++ { rb.Write(data) rb.Read(buf) } } func BenchmarkRingBuffer_AsyncRead(b *testing.B) { // Pretty useless benchmark, but it's here for completeness. rb := New(1024) data := []byte(strings.Repeat("a", 512)) buf := make([]byte, 512)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 15 00:11:04 UTC 2024 - 1.7K bytes - Viewed (0) -
platforms/core-execution/build-cache-http/src/integTest/groovy/org/gradle/caching/http/internal/HttpBuildCacheServiceErrorHandlingIntegrationTest.groovy
@Input Long fileSize = 1024 @OutputFile File outputFile @TaskAction void createFile() { outputFile.withOutputStream { OutputStream out -> def random = new Random() def buffer = new byte[1024] for (def count = 0; count < fileSize; count++) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:43:12 UTC 2023 - 7.1K bytes - Viewed (0)