Sign in
go
/
go
/
87105e5b2e3462cb5d62d9a8e08b9e45f65ed671
/
.
/
misc
/
cgo
/
test
/
testdata
/
issue9510b
/
b.go
blob: 5016b39597e13439c7e800df0727467eee18eccb [
file
] [
log
] [
blame
]
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)))
}