The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 1 | /* |
| 2 | * cabsf() wrapper for hypotf(). |
| 3 | * |
| 4 | * Written by J.T. Conklin, <jtc@wimsey.com> |
| 5 | * Placed into the Public Domain, 1994. |
| 6 | */ |
| 7 | |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 8 | #include <complex.h> |
| 9 | #include <math.h> |
| 10 | #include "math_private.h" |
| 11 | |
| 12 | float |
Elliott Hughes | 022e1aa | 2022-07-12 17:01:46 -0700 | [diff] [blame] | 13 | cabsf(float complex z) |
The Android Open Source Project | 1dc9e47 | 2009-03-03 19:28:35 -0800 | [diff] [blame] | 14 | { |
| 15 | |
| 16 | return hypotf(crealf(z), cimagf(z)); |
| 17 | } |