source: trunk/libs/newlib/src/newlib/libm/complex/cabsl.c @ 620

Last change on this file since 620 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 385 bytes
Line 
1/* Copyright (C) 2015 by  Red Hat, Incorporated. All rights reserved.
2 *
3 * Permission to use, copy, modify, and distribute this software
4 * is freely granted, provided that this notice is preserved.
5 */
6
7#include <complex.h>
8#include <math.h>
9
10long double
11cabsl (long double complex z)
12{
13#ifdef _LDBL_EQ_DBL
14  return cabs (z);
15#else
16  return hypotl (creall (z), cimagl (z));
17#endif
18}
Note: See TracBrowser for help on using the repository browser.