[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new module 'floorl'

From: Bruno Haible
Subject: Re: new module 'floorl'
Date: Fri, 5 Oct 2007 12:31:06 +0200
User-agent: KMail/1.5.4

Paolo Bonzini wrote:
> >   - In math.h, do a "#define floorl rpl_floorl", in order to avoid
> >     possible undesired compiler optimizations.
> No problem, but I wonder what's the rationale for the last item.

It's that I've seen gcc transform some trunc() calls into truncf() calls
or similar. If gnulib provides a trunc() substitute, it will set TRUNC_LIBM
to empty, thus a program should be able to use trunc() and not link with libm.
If gcc has turned the trunc() into truncf() in some special cases, the user
will get a link error.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]