Changeset 1017 for trunk/src/real.h


Ignore:
Timestamp:
Oct 12, 2011, 12:01:44 AM (9 years ago)
Author:
sam
Message:

core: fix an accuracy error in real::re() and real::sqrt() introduced in
the 16-to-32-bit refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/real.h

    r1016 r1017  
    105105    static real const R_SQRT1_2;
    106106
    107 private:
    108107    /* XXX: changing this requires tuning real::fres (the number of
    109108     * Newton-Raphson iterations) and real::print (the number of printed
    110109     * digits) */
    111110    static int const BIGITS = 16;
     111    static int const BIGIT_BITS = 32;
    112112
     113private:
    113114    uint32_t m_size;
    114115    uint32_t m_signexp;
Note: See TracChangeset for help on using the changeset viewer.