Subject: floating point print problem
To: None <netbsd-help@NetBSD.org>
From: Madhvesh R S <madhvesh.s@ap.sony.com>
List: netbsd-help
Date: 03/12/2004 12:07:12
Hi,

I am referring to NetBSd-v1.6.
The following floating point program i tried to print
on ARM and PPC machines. But it gives wrong result.(prints
zero result).  I have rebuilt the NetBSD lib/libc and soft-float 
for ARM and PPC machines.

With this it gives output as zero. What could be the reason?

Test program==>
==============================================================
#include<stdio.h>
main()
{
printf("Floating point number 2.5 is to be printed\n");
printf("%f",2.5);
}
==============================================================

While building softfloat, i added the floatlibc.a from the arch 
specific folder. Any options to be set to use softfloat within 
vfprintf() of libc?


Thanks in advance
Best Regards
-MS