bug-gnulib
[Top][All Lists]
Advanced

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

Re: [bug-gnulib] module for missing math.h functions?


From: Bruno Haible
Subject: Re: [bug-gnulib] module for missing math.h functions?
Date: Mon, 27 Nov 2006 14:29:54 +0100
User-agent: KMail/1.9.1

Ben Pfaff wrote:
> C99 added some useful functions to math.h, such as trunc and
> round.  Would there be objections to a module that adds
> implementations of those functions?

This would be a good idea. Can you write it so that it augments <math.h>,
like we do for <fcntl.h> or <sys/stat.h>?

If you're at it, you can also contribute the complete set of rounding functions
from ISO C 99 7.12.9: ceil, floor, nearbyint, rint, lrint, llrint, round,
lround, llround, trunc.

Can substitutes in gnulib assume that the 'double' format is IEEE 754
(it is on all modern platforms; VAX was the last one with other formats) ?
Or should they be written in a slower, but more portable way?

Bruno




reply via email to

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