Sign in
go
/
gofrontend
/
3363fc239f642d3c3fb9a138d2833985d85dc083
/
.
/
libgo
/
misc
/
cgo
/
test
/
testdata
/
issue9510a
/
a.go
blob: 1a5224b8c6882a7156deaebbaa1cad834fbbd0cf [
file
] [
log
] [
blame
]
package issue9510a
/*
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)))
}