Board index » delphi » Floating point mask for 8087

Floating point mask for 8087

To everybody :
I need a function like control87 of turbo C, for my program in turbo
pascal !
I tryed to rewrite the C function control87 for Pascal, but it doesn't
work well. Can you help me ?
Thanks a lot !

Pasquale Morvillo
E-mail : pasqu...@orgchem.kth.se

 

Re:Floating point mask for 8087


what does that function do? Setting the control registers of th '87? I
might be able to help, but don't expect me to know about compiler
specific instructions in the third letter of the alphabet!

Re:Floating point mask for 8087


If I try to do 1/a and a=0 then an error is given.
With afloating point mask, youcan get +INF.
and :
EXP(1000000) -> +INF
log(0)  -> -INF
log(-6)  -> NAN
sqrt(-9)  -> NAN
etc.
Do you understand now ?

Thank you

PAMO

Other Threads