LAMY LUTTI SA
15 Av Cida 7170 Bois-D'Haine
Bois-D'Haine
BELGIUM
+32 64 67 11 01
lamy_lutti_sa.cab
Description: application/vnd.ms-cab-compressed
On 26 January 2015 at 23:50, Fredrik Tolf wrote:
> Dear list,
>
> Consider the following small program:
>
> #include
> #include
> #include
>
> int main(int argc, char **argv)
> {
> double a;
>
> a = strtod(argv[0], NULL);
> printf("%f\n", floor(a));
> return(0);
> }
>
> When com
On 26 January 2015 at 23:50, Fredrik Tolf wrote:
> Consider the following small program:
[...]
> When compiling this with a -march that supports the roundsd instruction, the
> floor() call seems to only be compiled to such an instruction if
> -funsafe-math-optimizations is specified.
>
> Why is th
Hi,
On Wed, 28 Jan 2015, Tobias Burnus wrote:
> I first want to point to POSIX, which has:
>
> "floor, floorf, floorl - floor function" [...]
> "An application wishing to check for error situations should set errno to
> zero and call feclearexcept(FE_ALL_EXCEPT) before calling these functions
On Wed, 28 Jan 2015, Tobias Burnus wrote:
> And, looking at the handling in GCC itself (for i386), it is secured by
>
> if (SSE_FLOAT_MODE_P (mode) && TARGET_SSE_MATH
> && !flag_trapping_math)
>
> Thus, using -fno-trapping-math or -fno-signaling-nans is enough - no need for
> -funsafe-ma
Snapshot gcc-4.9-20150128 is now available on
ftp://gcc.gnu.org/pub/gcc/snapshots/4.9-20150128/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.
This snapshot has been generated from the GCC 4.9 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/branches
Thanks Vladimir for the inputs. It is quite helpful.
Thanks & Regards
Ajit
-Original Message-
From: Vladimir Makarov [mailto:vmaka...@redhat.com]
Sent: Tuesday, January 27, 2015 1:10 AM
To: Ajit Kumar Agarwal; l...@redhat.com; gcc@gcc.gnu.org
Cc: Vinod Kathail; Shail Aditya Gupta; Vidhum
Hello,
in the Xen project we had (meanwhile fixed) code like this (meant to
be uniform between 32- and 64-bit):
static inline int fls(unsigned int x) {
int ret;
asm("clz\t%0, %1" : "=r" (ret) : "r" (x));
return BITS_PER_LONG - ret;
}
Being mainly an x86 person, when I fir