bug-gmp
[Top][All Lists]
Advanced

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

GMP ceil/floor/trunc


From: Hans Aberg
Subject: GMP ceil/floor/trunc
Date: Tue, 24 Apr 2001 16:09:55 +0200

At 13:02 +0200 2001/04/24, Torbjorn Granlund wrote:
>    mpf_ceil
>    mpf_floor
>    mpf_trunc
...
>True for mpz_inp_binary and mpz_out_binary (now cleaned up), not true
>for the rest.  They are in mpf/integer.c.  Is click-my-icon compilers
>like CodeWarrior might not be capable of compiling a file several
>times?

The workaround I choose was to make three files "f_ceil.c", "f_floor.c",
"f_trunc.c", with contents:

#define MPF_CEIL 1
#include "integer.c"

and similar for the other files. Then I include these files instead of
mpf/integer.c.

This produces the correct names to the linker, but it confuses the IDE. So
visually, it looks as though only one of the names were defined. Evidently,
it does not accept more than one name per file being defined. This is an
IDE bug, though, that does not have anything with the compilation to do.

  Hans Aberg





reply via email to

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