go b 源码

  • 2022-07-15
  • 浏览 (1195)

golang b 代码

文件路径:/misc/cgo/test/testdata/issue9510b/b.go

package issue9510b

/*
static double csquare(double a, double b) {
	__complex__ double d;
	__real__ d = a;
	__imag__ d = b;
	return __real__ (d * d);
}
*/
import "C"

func F(a, b float64) float64 {
	return float64(C.csquare(C.double(a), C.double(b)))
}

相关信息

go 源码目录

相关文章

go go_android_exec 源码

go argposition_test 源码

go badsym_test 源码

go errors_test 源码

go ptr_test 源码

go err1 源码

go err2 源码

go err4 源码

go issue11097a 源码

go issue11097b 源码

0  赞