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 float fabsf (float x);
7
8 float
fabsf(float x)9 fabsf (float x)
10 {
11 #if defined(__x86_64__) || defined(_AMD64_) || defined(__arm__) || defined(_ARM_) || defined(__aarch64__) || defined(_ARM64_)
12 return __builtin_fabsf (x);
13 #elif defined(__i386__) || defined(_X86_)
14 float res = 0.0F;
15 asm volatile ("fabs;" : "=t" (res) : "0" (x));
16 return res;
17 #endif /* defined(__x86_64__) || defined(_AMD64_) || defined(__arm__) || defined(_ARM_) || defined(__aarch64__) || defined(_ARM64_) */
18 }
19