diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:13 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:13 -0800 |
commit | 1767f908af327fa388b1c66883760ad851267013 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /libm/src/w_cabs.c | |
parent | a799b53f10e5a6fd51fef4436cfb7ec99836a516 (diff) | |
download | bionic-1767f908af327fa388b1c66883760ad851267013.zip bionic-1767f908af327fa388b1c66883760ad851267013.tar.gz bionic-1767f908af327fa388b1c66883760ad851267013.tar.bz2 |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'libm/src/w_cabs.c')
-rw-r--r-- | libm/src/w_cabs.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/libm/src/w_cabs.c b/libm/src/w_cabs.c deleted file mode 100644 index 577e5e0..0000000 --- a/libm/src/w_cabs.c +++ /dev/null @@ -1,28 +0,0 @@ -/* - * cabs() wrapper for hypot(). - * - * Written by J.T. Conklin, <jtc@wimsey.com> - * Placed into the Public Domain, 1994. - */ - -#ifndef lint -static const char rcsid[] = - "$FreeBSD: src/lib/msun/src/w_cabs.c,v 1.4 2001/06/13 15:16:30 ru Exp $"; -#endif /* not lint */ - -#include <complex.h> -#include <math.h> - -double -cabs(z) - double complex z; -{ - return hypot(creal(z), cimag(z)); -} - -double -z_abs(z) - double complex *z; -{ - return hypot(creal(*z), cimag(*z)); -} |