This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Error in fused multiply add
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "John Pryce" <j dot d dot pryce at ntlworld dot com>
- Cc: libc-help at sourceware dot org
- Date: Sat, 5 Jul 2008 17:29:39 -0400
- Subject: Re: Error in fused multiply add
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=BnhKLlhMzPC+U/JJ0I1/8l/ooEHuZo4jKD/hyUKWJaE=; b=KWNaCEiBwzfGAaiMA03+YsW+CdBngKQPnK6QWX/dXuflqA6DGAwZIaVV8erfaNYaDO oJJAeQ48Ev4WhC5GW0uFsm8g05/ZURopkb/KmDxpgQKXQWXg4tYR9pt9DKqV9MKfKFc5 O+h7CRD8JQNP7CAZXQuLa8Yr+k4+AiP4eytjM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=Lfcq3w3yKjgQgtifIiaY/ASAAcMUnCpko+NKRkj7GzD/DmPWS5KsRyBwx+mDwf27T5 /gDKQj7dzFKV1/1uJn3puGAG422zToP7iBkt/qhAJJ6CL6AVOkRk0mfZ0/L2qmDUG6ts R1/RqRVnMVCFaHbsvl/uDaU5YTJBF/UwChZjQ=
- References: <20080704070544.FMFN16854.aamtaout01-winn.ispmail.ntl.com@smtp.ntlworld.com>
On Fri, Jul 4, 2008 at 3:05 AM, John Pryce <j.d.pryce@ntlworld.com> wrote:
> Platform:
> Model Identifier: MacBookPro2,2
> Processor Name: Intel Core 2 Duo
> OS: Mac OS X 10.4.11 Tiger
> Compiler: i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1
What C library are you using? Are you actually linking against glibc?
If you *are* linking against glibc, please provide a test case.
This works perfectly fine on my i686-pc-linux-gnu GNU/Libc based system.
cat >> test.c <<EOF
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main (void) {
printf("fma(+inf,+inf,0) = %g\n", fma(INFINITY,INFINITY,0));
return 0;
}
EOF
gcc -std=c99 -lm -o test test.c
./test
fma(+inf,+inf,0) = inf
Cheers,
Carlos.