- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 170 for gofunc (0.12 sec)
-
test/func.go
// Test simple functions. package main func assertequal(is, shouldbe int, msg string) { if is != shouldbe { print("assertion fail", msg, "\n") panic(1) } } func f1() { } func f2(a int) { } func f3(a, b int) int { return a + b } func f4(a, b int, c float32) int { return (a+b)/2 + int(c) } func f5(a int) int { return 5 } func f6(a int) (r int) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 03:28:53 UTC 2012 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/operand.go
// // commaerr <expr> (<untyped kind> <mode> ) // commaerr <expr> ( <mode> of type <typ>) // // cgofunc <expr> (<untyped kind> <mode> ) // cgofunc <expr> ( <mode> of type <typ>) func operandString(x *operand, qf Qualifier) string { // special-case nil if isTypes2 { if x.mode == nilvalue { switch x.typ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/go/testdata/script/cover_test_pkgselect.txt
module example go 1.18 -- foo/foo.go -- package foo func FooFunc() int { return 42 } func FooFunc2() int { return 42 } -- foo/foo_test.go -- package foo import "testing" func TestFoo(t *testing.T) { if FooFunc() != 42 { t.Fatalf("bad") } } -- bar/bar.go -- package bar import "example/foo" func BarFunc() int { return foo.FooFunc2() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 28 11:50:58 UTC 2022 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/func.go
} func (f *Func) ConstInt32(t *types.Type, c int32) *Value { return f.constVal(OpConst32, t, int64(c), true) } func (f *Func) ConstInt64(t *types.Type, c int64) *Value { return f.constVal(OpConst64, t, c, true) } func (f *Func) ConstFloat32(t *types.Type, c float64) *Value { return f.constVal(OpConst32F, t, int64(math.Float64bits(float64(float32(c)))), true) } func (f *Func) ConstFloat64(t *types.Type, c float64) *Value {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 25.8K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/func.go
// (Call typecheck.Func instead.) func tcFunc(n *ir.Func) { if base.EnableTrace && base.Flag.LowerT { defer tracePrint("tcFunc", n)(nil) } if name := n.Nname; name.Typecheck() == 0 { base.AssertfAt(name.Type() != nil, n.Pos(), "missing type: %v", name) name.SetTypecheck(1) } } // tcCall typechecks an OCALL node. func tcCall(n *ir.CallExpr, top int) ir.Node {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 21.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/func.h
#define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_COMMON_FUNC_H_ #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project #include "mlir/IR/BuiltinOps.h" // from @llvm-project namespace mlir::quant { // Returns a public `func::FuncOp` in `module_op` whose name matches either // `main` or `serving_default`. If `func::FuncOps` with both names exist, the // function with name "main" takes precedence. Returns null if no such a
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 19 06:55:11 UTC 2024 - 1.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/func-attr.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 28 12:06:33 UTC 2022 - 725 bytes - Viewed (0) -
callbacks/update.go
if field.AutoUpdateTime == schema.UnixNanosecond { value = stmt.DB.NowFunc().UnixNano() } else if field.AutoUpdateTime == schema.UnixMillisecond { value = stmt.DB.NowFunc().UnixMilli() } else if field.AutoUpdateTime == schema.UnixSecond { value = stmt.DB.NowFunc().Unix() } else { value = stmt.DB.NowFunc() } isZero = false }
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Mon Mar 18 05:44:55 UTC 2024 - 9.4K bytes - Viewed (0) -
test/typeparam/issue49309.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 18 17:26:40 UTC 2022 - 367 bytes - Viewed (0) -
src/cmd/link/internal/sym/symkind_string.go
package sym import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[Sxxx-0] _ = x[STEXT-1] _ = x[SELFRXSECT-2] _ = x[SMACHOPLT-3] _ = x[STYPE-4] _ = x[SSTRING-5] _ = x[SGOSTRING-6] _ = x[SGOFUNC-7] _ = x[SGCBITS-8] _ = x[SRODATA-9]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 13:29:54 UTC 2024 - 2.7K bytes - Viewed (0)