- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 117 for cfunc (0.04 sec)
-
src/cmd/go/testdata/script/cover_coverpkg_partial.txt
func TestB(t *testing.T) { if BFunc() == 1010101 { t.Fatalf("bad!") } } -- c/c.go -- package c var G int func CFunc(x, y int) int { G += x G -= y return x + y } -- c/c_test.go -- package c import "testing" func TestC(t *testing.T) { if CFunc(10, 10) == 1010101 { t.Fatalf("bad!") } } -- d/d.go -- package d const FortyTwo = 42
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 20:12:49 UTC 2024 - 3.3K bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/go2c2go/m1/main.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main // extern int CFunc(void); import "C" import ( "fmt" "os" ) func main() { got := C.CFunc() const want = (1 << 8) | 2 if got != want { fmt.Printf("got %#x, want %#x\n", got, want) os.Exit(1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 380 bytes - Viewed (0) -
src/cmd/cgo/internal/testcshared/testdata/go2c2go/m1/c.c
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "libtestgo2c2go.h" int CFunc(void) { return (GoFunc() << 8) + 2;
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 238 bytes - Viewed (0) -
src/cmd/cgo/internal/testplugin/testdata/plugin2/plugin2.go
// license that can be found in the LICENSE file. package main //#include <errno.h> //#include <string.h> import "C" // #include // void cfunc() {} // uses cgo_topofstack import ( "reflect" "strings" "testplugin/common" ) func init() { _ = strings.NewReplacer() // trigger stack unwind, Issue #18190. C.strerror(C.EIO) // uses cgo_topofstack common.X = 2 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 796 bytes - Viewed (0) -
src/runtime/syscall_windows_test.go
type uint8Pair struct{ x, y uint8 } var cbFuncs = []cbFunc{ {func(i1, i2 uintptr) uintptr { return i1 + i2 }}, {func(i1, i2, i3 uintptr) uintptr { return i1 + i2 + i3 }}, {func(i1, i2, i3, i4 uintptr) uintptr { return i1 + i2 + i3 + i4 }}, {func(i1, i2, i3, i4, i5 uintptr) uintptr { return i1 + i2 + i3 + i4 + i5 }}, {func(i1, i2, i3, i4, i5, i6 uintptr) uintptr {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0) -
src/cmd/internal/obj/loong64/obj.go
} if autosize == 0 && c.cursym.Func().Text.Mark&LEAF == 0 { if c.cursym.Func().Text.From.Sym.NoSplit() { if ctxt.Debugvlog { ctxt.Logf("save suppressed in: %s\n", c.cursym.Name) } c.cursym.Func().Text.Mark |= LEAF } } p.To.Offset = int64(autosize) - ctxt.Arch.FixedFrameSize if c.cursym.Func().Text.Mark&LEAF != 0 { c.cursym.Set(obj.AttrLeaf, true)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 21 19:22:18 UTC 2023 - 19.7K bytes - Viewed (0) -
src/cmd/internal/obj/x86/obj6.go
pcdata = cursym.Func().SpillRegisterArgs(spill, newprog) call := obj.Appendp(pcdata, newprog) call.Pos = cursym.Func().Text.Pos call.As = obj.ACALL call.To.Type = obj.TYPE_BRANCH call.To.Name = obj.NAME_EXTERN morestack := "runtime.morestack" switch { case cursym.CFunc(): morestack = "runtime.morestackc" case !cursym.Func().Text.From.Sym.NeedCtxt():
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:36:45 UTC 2023 - 40.9K bytes - Viewed (0) -
src/cmd/internal/obj/objfile.go
} if s.CFunc() { fmt.Fprintf(ctxt.Bso, "cfunc ") } if s.NoSplit() { fmt.Fprintf(ctxt.Bso, "nosplit ") } if s.Func() != nil && s.Func().FuncFlag&abi.FuncFlagTopFrame != 0 { fmt.Fprintf(ctxt.Bso, "topframe ") } if s.Func() != nil && s.Func().FuncFlag&abi.FuncFlagAsm != 0 { fmt.Fprintf(ctxt.Bso, "asm ") } fmt.Fprintf(ctxt.Bso, "size=%d", s.Size) if s.Type == objabi.STEXT {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 24K bytes - Viewed (0) -
src/cmd/internal/obj/arm/obj5.go
const ( FOLL = 1 << 0 LABEL = 1 << 1 LEAF = 1 << 2 ) func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) { autosize := int32(0) if cursym.Func().Text == nil || cursym.Func().Text.Link == nil { return } c := ctxt5{ctxt: ctxt, cursym: cursym, newprog: newprog} p := c.cursym.Func().Text autoffset := int32(p.To.Offset) if autoffset == -4 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 17:19:36 UTC 2023 - 21.4K bytes - Viewed (0) -
src/cmd/internal/obj/s390x/objz.go
} else { return } obj.Nopout(p) } func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) { // TODO(minux): add morestack short-cuts with small fixed frame-size. if cursym.Func().Text == nil || cursym.Func().Text.Link == nil { return } c := ctxtz{ctxt: ctxt, cursym: cursym, newprog: newprog} p := c.cursym.Func().Text textstksiz := p.To.Offset if textstksiz == -8 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 21 19:28:53 UTC 2023 - 21K bytes - Viewed (0)