[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gnulib] module for missing math.h functions?
From: |
Ben Pfaff |
Subject: |
Re: [bug-gnulib] module for missing math.h functions? |
Date: |
Mon, 27 Nov 2006 07:16:40 -0800 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
Bruno Haible <address@hidden> writes:
> 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>?
That is my plan.
> 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?
This question is actually vital. If we can assume IEEE 754, then
I can use implementations from glibc. If we can't, then it is
more difficult, and I will have to see how clever I can be.
Do we have any opinions on this?
--
"Implementation details are beyond the scope of the Java virtual
machine specification. One should not assume that every virtual
machine implementation contains a giant squid."
--"Mr. Bunny's Big Cup o' Java"