blob: aedbdef217cad61dc0659909f18d6de80b36a69e [file] [log] [blame]
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08001/*
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 Project1dc9e472009-03-03 19:28:35 -08008#include <complex.h>
9#include <math.h>
10#include "math_private.h"
11
12float
Elliott Hughes022e1aa2022-07-12 17:01:46 -070013cabsf(float complex z)
The Android Open Source Project1dc9e472009-03-03 19:28:35 -080014{
15
16 return hypotf(crealf(z), cimagf(z));
17}