[Top][All Lists]
[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
- Re: GMP MacOS PPC assembler, (continued)
- GMP parser, Hans Aberg, 2001/04/26
- Re: GMP parser, Kevin Ryde, 2001/04/29
- Re: GMP parser, Hans Aberg, 2001/04/30
- GMP C++ wrap, Hans Aberg, 2001/04/25
- GMP Inputs, Hans Aberg, 2001/04/25
- Re: GMP Inputs, Kevin Ryde, 2001/04/25
- Re: GMP Inputs, Hans Aberg, 2001/04/26
GMP ceil/floor/trunc,
Hans Aberg <=