w_cabsf.c 416 B

1234567891011121314151617181920212223
  1. /*
  2. * cabsf() wrapper for hypotf().
  3. *
  4. * Written by J.T. Conklin, <[email protected]>
  5. * Placed into the Public Domain, 1994.
  6. */
  7. #ifndef lint
  8. static const char rcsid[] =
  9. "$FreeBSD: src/lib/msun/src/w_cabsf.c,v 1.3 2001/06/13 15:16:30 ru Exp $";
  10. #endif /* not lint */
  11. #include <complex.h>
  12. #include <openlibm.h>
  13. #include "math_private.h"
  14. float
  15. cabsf(z)
  16. float complex z;
  17. {
  18. return hypotf(crealf(z), cimagf(z));
  19. }