- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for cout (0.16 sec)
-
src/cmd/cgo/doc.go
but instead calls a Go helper function that wraps the C library malloc but guarantees never to return nil. If C's malloc indicates out of memory, the helper function crashes the program, like when Go itself runs out of memory. Because C.malloc cannot fail, it has no two-result form that returns errno. # C references to Go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 17:12:16 UTC 2024 - 42.2K bytes - Viewed (0) -
src/archive/tar/writer.go
} return nil } type ( stringFormatter func([]byte, string) numberFormatter func([]byte, int64) ) // templateV7Plus fills out the V7 fields of a block using values from hdr. // It also fills out fields (uname, gname, devmajor, devminor) that are // shared in the USTAR, PAX, and GNU formats using the provided formatters. // // The block returned is only valid until the next call to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.6K bytes - Viewed (0) -
src/bytes/buffer_test.go
switch err := recover().(type) { case nil: t.Fatal("bytes.Buffer.ReadFrom didn't panic") case error: // this is the error string of errNegativeRead wantError := "bytes.Buffer: reader returned negative count from Read" if err.Error() != wantError { t.Fatalf("recovered panic: got %v, want %v", err.Error(), wantError) } default: t.Fatalf("unexpected panic value: %#v", err) } }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 13:31:36 UTC 2024 - 18.6K bytes - Viewed (0) -
src/archive/tar/writer_test.go
}, nil}, testWrite{"", 0, nil}, testClose{nil}, }, }, { // The truncated test file was produced using these commands: // dd if=/dev/zero bs=1048576 count=16384 > /tmp/16gig.txt // tar -b 1 -c -f- /tmp/16gig.txt | dd bs=512 count=8 > writer-big.tar file: "testdata/writer-big.tar", tests: []testFnc{ testHeader{Header{ Typeflag: TypeReg, Name: "tmp/16gig.txt", Size: 16 << 30,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 38.7K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/scoring.go
bud, _ := budgetCallback(cs.Callee, profile) hairyval := cs.Callee.Inl.Cost score := int32(cs.Score) if hairyval > bud && score <= bud { return true } if cs.parent != nil { return indirectlyDueToPromotion(cs.parent) } return false } genstatus := func(cs *CallSite) string { hairyval := cs.Callee.Inl.Cost bud, isPGO := budgetCallback(cs.Callee, profile) score := int32(cs.Score)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 20:42:52 UTC 2024 - 24.2K bytes - Viewed (0) -
src/cmd/compile/internal/ir/func.go
func (f *Func) LinksymABI(abi obj.ABI) *obj.LSym { return f.Nname.LinksymABI(abi) } // An Inline holds fields used for function bodies that can be inlined. type Inline struct { Cost int32 // heuristic cost of inlining this function // Copy of Func.Dcl for use during inlining. This copy is needed // because the function's Dcl may change from later compiler
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 21.1K bytes - Viewed (0) -
src/cmd/cgo/internal/test/test.go
// issue 3261 func testLibgcc(t *testing.T) { var table = []struct { in, out C.int }{ {0, 0}, {1, 1}, {-42, 42}, {1000300, 1000300}, {1 - 1<<31, 1<<31 - 1}, } for _, v := range table { if o := C.vabs(v.in); o != v.out { t.Fatalf("abs(%d) got %d, should be %d", v.in, o, v.out) return } } } // issue 3729
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/plugin_test.go
prettyPrintf("%s\n", cmdLine) cmd.Stderr = new(strings.Builder) out, err := cmd.Output() if err != nil { if t == nil { log.Panicf("%s: %v\n%s", strings.Join(cmd.Args, " "), err, cmd.Stderr) } else { t.Helper() t.Fatalf("%s: %v\n%s", strings.Join(cmd.Args, " "), err, cmd.Stderr) } } return string(bytes.TrimSpace(out)) } func TestDWARFSections(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:32:53 UTC 2024 - 12.3K bytes - Viewed (0)