Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

inlining math function with long double type on itanium2/linux

amgastineau
Beginner
327 Views
Hye,

I discovered that intel compiler (version 9.1.045) doesn't inline the standard math function which are operating on long double type (fabsl, sqtrl, cosl, ..) on itanium2 with linux. I try the option "-O3 -ipo -static -limf" but it perform any inlining. With this following example, the function fabsl isn't inlined but the function fabs is inline.
Which command-line should I use to have the function (fabsl, ..) inlined ?

Mickael,

[~]$ cat toto.c
#include
#include

int main()
{
long double x=fabsl(1.E0L);
double y=fabs(1.E0);
printf("%LE %E ", x,y);
};

[ ~]$ icc -O3 toto.c -ipo -o toto -limf -static
IPO: performing single-file optimizations
IPO: generating object file /tmp/ipo_icc79lEWQ.o
[ ~]$ nm toto | grep fabs
4000000000000480 T fabsl
4000000000000480 T __libm_fabsl
0 Kudos
0 Replies
Reply