- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for Min (0.12 sec)
-
src/builtin/builtin.go
// max will return NaN. func max[T cmp.Ordered](x T, y ...T) T // The min built-in function returns the smallest value of a fixed number of // arguments of [cmp.Ordered] types. There must be at least one argument. // If T is a floating-point type and any of the arguments are NaNs, // min will return NaN. func min[T cmp.Ordered](x T, y ...T) T
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 12.7K bytes - Viewed (0) -
doc/go1.17_spec.html
} </pre> <p> A function declaration may omit the body. Such a declaration provides the signature for a function implemented outside Go, such as an assembly routine. </p> <pre> func min(x int, y int) int { if x < y { return x } return y } func flushICache(begin, end uintptr) // implemented externally </pre> <h3 id="Method_declarations">Method declarations</h3>
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
doc/go_spec.html
var s []string _ = min(s...) // invalid: slice arguments are not permitted t := max("", "foo", "bar") // t == "foo" (string kind) </pre> <p> For numeric arguments, assuming all NaNs are equal, <code>min</code> and <code>max</code> are commutative and associative: </p> <pre> min(x, y) == min(y, x) min(x, y, z) == min(min(x, y), z) == min(x, min(y, z)) </pre>
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu May 02 22:43:51 GMT 2024 - 279.6K bytes - Viewed (0) -
src/archive/zip/zip_test.go
part := &r.buf[i] return part.off+part.n > off }) parts := r.buf[skipParts:] if len(parts) > 0 { skipBytes := off - parts[0].off for _, part := range parts { repeat := int(min(part.n-skipBytes, int64(len(p)-n))) memset(p[n:n+repeat], part.b) n += repeat if n == len(p) { return } skipBytes = 0 } } if n != len(p) { err = io.ErrUnexpectedEOF }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Mar 27 18:23:49 GMT 2024 - 19.5K bytes - Viewed (0) -
src/archive/zip/writer.go
// written here or in the trailing data descriptor based on the header // flags. if h.raw && !h.hasDataDescriptor() { b.uint32(h.CRC32) b.uint32(uint32(min(h.CompressedSize64, uint32max))) b.uint32(uint32(min(h.UncompressedSize64, uint32max))) } else { // When this package handle the compression, these values are // always written to the trailing data descriptor. b.uint32(0) // crc32
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 04 14:28:57 GMT 2024 - 19.3K bytes - Viewed (0) -
src/archive/tar/reader.go
var nf int // Bytes read in fragment holeStart, holeEnd := sr.sp[0].Offset, sr.sp[0].endOffset() if sr.pos < holeStart { // In a data fragment bf := b[:min(int64(len(b)), holeStart-sr.pos)] nf, err = tryReadFull(sr.fr, bf) } else { // In a hole fragment bf := b[:min(int64(len(b)), holeEnd-sr.pos)] nf, err = tryReadFull(zeroReader{}, bf) } b = b[nf:] sr.pos += int64(nf)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 08 01:59:14 GMT 2024 - 26.8K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/riscv64.s
CTZ X24, X25 // 931c1c60 CTZW X25, X26 // 1b9d1c60 MAX X26, X28, X29 // b36eae0b MAX X26, X28 // 336eae0b MAXU X28, X29, X30 // 33ffce0b MAXU X28, X29 // b3fece0b MIN X29, X30, X5 // b342df0b MIN X29, X30 // 334fdf0b MINU X30, X5, X6 // 33d3e20b MINU X30, X5 // b3d2e20b ORN X6, X7, X8 // 33e46340 ORN X6, X7 // b3e36340 SEXTB X16, X17 // 93184860
Others - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 22 04:42:21 GMT 2024 - 16.7K bytes - Viewed (1)