Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for fixed (0.12 sec)

  1. src/builtin/builtin.go

    // The max built-in function returns the largest 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,
    // 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.
    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)
  2. src/bytes/bytes_test.go

    			x[i] = ' '
    		} else {
    			x[i] = 'x'
    		}
    	}
    	return x
    }
    
    var bytesdata = []struct {
    	name string
    	data []byte
    }{
    	{"ASCII", makeFieldsInputASCII()},
    	{"Mixed", makeFieldsInput()},
    }
    
    func BenchmarkFields(b *testing.B) {
    	for _, sd := range bytesdata {
    		b.Run(sd.name, func(b *testing.B) {
    			for j := 1 << 4; j <= 1<<20; j <<= 4 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  3. src/cmd/cgo/doc.go

    	// }
    	import "C"
    	import "fmt"
    
    	func main() {
    		f := C.intFunc(C.fortytwo)
    		fmt.Println(int(C.bridge_int_func(f)))
    		// Output: 42
    	}
    
    In C, a function argument written as a fixed size array
    actually requires a pointer to the first element of the array.
    C compilers are aware of this calling convention and adjust
    the call accordingly, but Go cannot. In Go, you must pass
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
Back to top