IEEE-754

  • Thread starter =?ISO-8859-1?Q?Roman_T=F6ngi?=
  • Start date
?

=?ISO-8859-1?Q?Roman_T=F6ngi?=

How can I set the status word and control word for the
IEEE-754 Standard. (e.g. setting the rounding mode).

This is compiler-dependant, is it?

So, my compiler is required to use the IEEE-Standard
and I have to look up with the compiler, is this correct?

Thx
 
T

Tim Prince

Roman said:
How can I set the status word and control word for the
IEEE-754 Standard. (e.g. setting the rounding mode).

This is compiler-dependant, is it?

So, my compiler is required to use the IEEE-Standard
and I have to look up with the compiler, is this correct?

C99 defines optional functions fegetround(), fesetround(). I've
never seen them used.
As Google search shows, gsl and netbsd provide such utilities.
Otherwise, it's sometimes done directly by embedded asm.
Certain compilers initialize precision mode silently, without
documenting it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top