Cygwin: (mostly) drop NT4 and Samba < 3.0 support
[newlib-cygwin.git] / winsup / cygwin / math / fabsl.c
blobf3864ea13eac809fc34c23e00bce53ab9ffdf704
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6 long double fabsl (long double x);
8 long double
9 fabsl (long double x)
11 #if defined(__x86_64__) || defined(_AMD64_) || defined(__i386__) || defined(_X86_)
12 long double res = 0.0L;
13 asm volatile ("fabs;" : "=t" (res) : "0" (x));
14 return res;
15 #elif defined(__arm__) || defined(_ARM_)
16 return __builtin_fabsl (x);
17 #endif /* defined(__x86_64__) || defined(_AMD64_) || defined(__i386__) || defined(_X86_) */