w_cabsf.c 300 B

12345678910111213141516171819
  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. #include <openlibm_complex.h>
  8. #include <openlibm_math.h>
  9. #include "math_private.h"
  10. DLLEXPORT float
  11. cabsf(z)
  12. float complex z;
  13. {
  14. return hypotf(crealf(z), cimagf(z));
  15. }