Author MrJean1
Recipients MrJean1, mark.dickinson
Date 2008-06-25.23:33:14
SpamBayes Score 0.000120595
Marked as misclassified No
Message-id <1214436796.58.0.696715542611.issue3167@psf.upfronthosting.co.za>
In-reply-to
Content
Unless I am doing something wrong, that flag does not fix the problem.

#include <errno.h>
#include <math.h>
#include <stdio.h>

int main(int argc, char *argv[])
{
    errno = 0;
    printf("%f %d\n", log(-HUGE_VAL), errno);
    errno = 0;
    printf("%f %d\n", log( HUGE_VAL), errno);
}

/* result is different for 32- and 64-bit

> rm a.out; cc -xtarget=native -xlibmieee log_inf.c -lm ; a.out
-NaN 33
Inf 0

> rm a.out ; cc -xtarget=native64 -xlibmieee log_inf.c -lm ; a.out
-NaN 0
Inf 0

#define EDOM 33 in /usr/include/sys/errno.h

*/
History
Date User Action Args
2008-06-25 23:33:17MrJean1setspambayes_score: 0.000120595 -> 0.000120595
recipients: + MrJean1, mark.dickinson
2008-06-25 23:33:16MrJean1setspambayes_score: 0.000120595 -> 0.000120595
messageid: <1214436796.58.0.696715542611.issue3167@psf.upfronthosting.co.za>
2008-06-25 23:33:15MrJean1linkissue3167 messages
2008-06-25 23:33:15MrJean1create