Correcting libc pow bindings

Adding tests that libc pow(f) functions
- have two arguments
- behave as expected for simple inputs.
This commit is contained in:
13419596
2022-09-21 17:15:28 -05:00
parent b1542d4e98
commit 4b4c2a2abd
3 changed files with 130 additions and 2 deletions
+2 -2
View File
@@ -49,8 +49,8 @@ foreign libc {
// 7.3.8 Power and absolute-value functions
cabs :: proc(z: complex_double) -> complex_double ---
cabsf :: proc(z: complex_float) -> complex_float ---
cpow :: proc(z: complex_double) -> complex_double ---
cpowf :: proc(z: complex_float) -> complex_float ---
cpow :: proc(x, y: complex_double) -> complex_double ---
cpowf :: proc(x, y: complex_float) -> complex_float ---
csqrt :: proc(z: complex_double) -> complex_double ---
csqrtf :: proc(z: complex_float) -> complex_float ---