Displaying 6 results from an estimated 6 matches for "fabsl".
Did you mean:
fabs
2018 Feb 06
0
libc++ cross-compile linux-armv7 and math function problems
At first glance, it looks like long double functions (such as fabsl and friends) are missing from your sysroot's <math.h>. Does your target support long double at all?
-Dimitry
> On 6 Feb 2018, at 09:51, Tobias Hieta via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> Hello,
>
> I am trying to cross-compile libc++ from my x86_64...
2018 Feb 06
2
libc++ cross-compile linux-armv7 and math function problems
...cts/libcxx/include/cmath:305:0,
from ../projects/libcxx/include/random:1638,
from ../projects/libcxx/src/algorithm.cpp:11:
../projects/libcxx/include/math.h: In function 'long double abs(long
double)':
../projects/libcxx/include/math.h:742:45: error: '::fabsl' has not been
declared
abs(long double __lcpp_x) _NOEXCEPT {return ::fabsl(__lcpp_x);}
^~
../projects/libcxx/include/math.h: In function 'long double acos(long
double)':
../projects/libcxx/include/math.h:749:91: error: '::acosl' has...
2018 Feb 06
1
libc++ cross-compile linux-armv7 and math function problems
Hello Dimitry and thanks for your answer.
I am pretty sure it does indeed support long double. It's configured with
vfpv3-d16 - but I noticed that c++config.h in gcc has _GLIBCXX__HAS_FABSL
and friends are undefined. I think I need to look deeper at the
configuration of our toolchain.
long double support is required in libc++ then I gather?
-- Tobias
On Tue, Feb 6, 2018 at 11:47 AM, Dimitry Andric <dimitry at andric.com> wrote:
> At first glance, it looks like long double...
2018 Feb 05
0
Cross-compiling libc++ to linux-armv7hf gives undefined symbols in cmath / math.h
...cts/libcxx/include/cmath:305:0,
from ../projects/libcxx/include/random:1638,
from ../projects/libcxx/src/algorithm.cpp:11:
../projects/libcxx/include/math.h: In function 'long double abs(long
double)':
../projects/libcxx/include/math.h:742:45: error: '::fabsl' has not been
declared
abs(long double __lcpp_x) _NOEXCEPT {return ::fabsl(__lcpp_x);}
^~
../projects/libcxx/include/math.h: In function 'long double acos(long
double)':
../projects/libcxx/include/math.h:749:91: error: '::acosl' has...
2005 Apr 28
0
[LLVMdev] SimplifyLibCalls Pass -- Help!
...,1/6)
* cbrt(sqrt(x)) -> pow(x,1/9)
ceil, ceilf, ceill:
* ceil(constant) -> constant'
cos, cosf, cosl:
* cos(0.0) -> 1.0
* cox(-x) -> cos(x)
exp, expf, expl:
* exp(0.0) -> 1.0
* exp(int) -> contant'
* exp(log(x)) -> x
fabs, fabsf, fabsl:
* fabs(cnst) -> cnst'
ffs, ffsl, ffsll:
* ffs(cnst) -> cnst'
floor, floorf, floorl:
* floor(cnst) -> cnst'
fprintf:
* fprintf(file,fmt) -> fputs(fmt,file)
(if fmt is constant and constains no % characters)
* fprintf(file,"%s",st...
2015 Jan 20
3
[LLVMdev] strlen in fast-isel
It seems that fast-isel for intel does not handle strlen. It's a general
problem in fast-isel .
~/llvmw/build/Deb~/llvmw/build/Debug+Asserts/bin/clang -O0 -mllvm
-fast-isel-verbose -mllvm -fast-isel strlen1.c
strlen1.c:12:3: warning: implicitly declaring library function 'printf' with
type 'int (const char *, ...)'
printf("%i\n", len);
^