[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:3 Jan 2005 20:10:18 -0000 
Subject:RE: single float results: a problem with C also, not just Fortran! 
From:Joe Wood 
Volume-ID: 

Happy New Year to all

> -----Original Message-----
> From: owner-pop-forum@cs.bham.ac.uk
> [mailto:owner-pop-forum@cs.bham.ac.uk]On Behalf Of Aaron Sloman
> Sent: 03 January 2005 19:57
> To: pop-forum@cs.bham.ac.uk
> Subject: single float results: a problem with C also, not just Fortran!

SNIP

> So the problem is there in C too (if what I have done is OK).

SNIP

Which would suggest that the conversion from single precision floats to pop
floats is the problem.

I believe this has to be hand written in assembler, with knowledge of both
pop-floats and native (single floats).

I guess that the inverse mapping should be checked as well.

What happens if you make baz
    float baz(float x)
         write (6), x        ! I may have this syntax wrong
         {return x;}

Just a though
Joe