- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for c_add (0.07 sec)
-
src/cmd/link/cgo_test.go
testCGOLTO(t, cc, cgoCflags, test) }) } } const test1_main = ` package main /* extern int myadd(int, int); int c_add(int a, int b) { return myadd(a, b); } */ import "C" func main() { println(C.c_add(1, 2)) } ` const test1_add = ` package main import "C" /* test */ //export myadd func myadd(a C.int, b C.int) C.int { return a + b
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 09 22:13:02 UTC 2023 - 2.7K bytes - Viewed (0) -
test/typeparam/maps.go
} } func TestAdd() { mc := _Copy(m1) _Add(mc, mc) if !_Equal(mc, m1) { panic(fmt.Sprintf("_Add(%v, %v) = %v, want %v", m1, m1, mc, m1)) } _Add(mc, map[int]int{16: 32}) want := map[int]int{1: 2, 2: 4, 4: 8, 8: 16, 16: 32} if !_Equal(mc, want) { panic(fmt.Sprintf("_Add result = %v, want %v", mc, want)) } } func TestSub() { mc := _Copy(m1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 5.9K bytes - Viewed (0) -
src/cmd/compile/internal/types2/universe.go
_Cap _Clear _Close _Complex _Copy _Delete _Imag _Len _Make _Max _Min _New _Panic _Print _Println _Real _Recover // package unsafe _Add _Alignof _Offsetof _Sizeof _Slice _SliceData _String _StringData // testing support _Assert _Trace ) var predeclaredFuncs = [...]struct { name string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.1K bytes - Viewed (0) -
src/go/types/universe.go
_Cap _Clear _Close _Complex _Copy _Delete _Imag _Len _Make _Max _Min _New _Panic _Print _Println _Real _Recover // package unsafe _Add _Alignof _Offsetof _Sizeof _Slice _SliceData _String _StringData // testing support _Assert _Trace ) var predeclaredFuncs = [...]struct { name string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 9.3K bytes - Viewed (0) -
src/cmd/internal/obj/loong64/a.out.go
C_LECON C_DACON // $n(REG) where int32 < n C_STCON // $tlsvar C_SBRA C_LBRA C_SAUTO C_LAUTO C_SEXT C_LEXT C_ZOREG C_SOREG C_LOREG C_GOK C_ADDR C_TLS_LE C_TLS_IE C_GOTADDR C_TEXTSIZE C_NCLASS // must be the last ) const ( AABSD = obj.ABaseLoong64 + obj.A_ARCHSPECIFIC + iota AABSF AADD AADDD AADDF
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:04:54 UTC 2024 - 5.7K bytes - Viewed (0) -
src/cmd/internal/obj/arm/a.out.go
C_SAUTO /* -0xfff to 0xfff */ C_LAUTO C_HOREG C_FOREG C_HFOREG C_SOREG C_ROREG C_SROREG /* both nil and R */ C_LOREG C_PC C_SP C_HREG C_ADDR /* reference to relocatable address */ // TLS "var" in local exec mode: will become a constant offset from // thread local base that is ultimately chosen by the program linker. C_TLS_LE
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 05 16:22:12 UTC 2021 - 7K bytes - Viewed (0) -
src/cmd/internal/obj/mips/a.out.go
C_LECON C_DACON /* $n(REG) where int32 < n */ C_STCON /* $tlsvar */ C_SBRA C_LBRA C_SAUTO C_LAUTO C_SEXT C_LEXT C_ZOREG C_SOREG C_LOREG C_GOK C_ADDR C_TLS C_TEXTSIZE C_NCLASS /* must be the last */ ) const ( AABSD = obj.ABaseMIPS + obj.A_ARCHSPECIFIC + iota AABSF AABSW AADD AADDD AADDF AADDU AADDW
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 08 12:17:12 UTC 2023 - 7.6K bytes - Viewed (0)