This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Problems with <tgmath.h>
- To: Andreas Jaeger <aj at suse dot de>, bacon at aerodyne dot com, "David L. Thompson" <dthompsn at cs dot umt dot edu>
- Subject: Re: Problems with <tgmath.h>
- From: Kaoru Fukui <k_fukui at highway dot ne dot jp>
- Date: Thu, 16 Dec 1999 22:02:41 +0900
- CC: libc-alpha at sourceware dot cygnus dot com
- References: <19991214183450.A16184@drow.res.cmu.edu> Daniel Jacobowitz's messageof "Tue, 14 Dec 1999 18:34:50 -0500"<u8aenbgkws.fsf@gromit.rhein-neckar.de>
From: Andreas Jaeger <aj@suse.de>
> tgmath.h is part of ISO C99 - therefore you should use _ISOC9X_SOURCE
> when including the file.
I have same problem.
this is result.
How do you think the result ?
My system is glibc-2.1.3
gcc-2.95.2
binutils-2.9.5.0.19
on powerpc mklinux.
Thanks
Kaoru
# gcc -o trunc trunc.c -lm
# ./trunc
#trunc(aa):-2147483648.000
#trunc(bb):0.000000
#
-------------------trunc.c-----------------
#include <>
#include <>
#include <>
#define __ISOC9X_SOURCE
int main () {
double aa=-1.5;
double bb=-1.5;
printf("trunc(aa): %f\n",(double)trunc(aa));
printf("trunc(bb): %f\n",(double)trunc(bb));
return;
}
-------------- end of trunc.c -----------------