IEEE-754

Discussion in 'C Programming' started by =?ISO-8859-1?Q?Roman_T=F6ngi?=, Sep 4, 2007.

  1. 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
    =?ISO-8859-1?Q?Roman_T=F6ngi?=, Sep 4, 2007
    #1
    1. Advertising

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

    Tim Prince Guest

    Roman Töngi wrote:
    > 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.
    Tim Prince, Sep 4, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Auronc

    IEEE-754 double class??

    Auronc, Sep 1, 2004, in forum: C++
    Replies:
    0
    Views:
    447
    Auronc
    Sep 1, 2004
  2. Lionel B
    Replies:
    0
    Views:
    1,053
    Lionel B
    Sep 23, 2004
  3. Dale Huffman

    IEEE 754 floats

    Dale Huffman, Sep 14, 2004, in forum: Python
    Replies:
    5
    Views:
    495
    Robert Kern
    Sep 15, 2004
  4. franzkowiak
    Replies:
    9
    Views:
    929
    Tim Peters
    Jan 16, 2005
  5. Grant Edwards
    Replies:
    11
    Views:
    626
    Grant Edwards
    Jul 15, 2005
Loading...

Share This Page