Changeset 834


Ignore:
Timestamp:
12/05/18 20:59:34 (6 years ago)
Author:
Maciej Komosinski
Message:

Renamed Math.h to MathDragon4.h because the <math.h> name clash is unfortunate (and caused problems with C++Builder and filename case-insensitive Windows)

Location:
cpp/PrintFloat
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • cpp/PrintFloat/Dragon4.cpp

    r823 r834  
    2424
    2525#include "Dragon4.h"
    26 #include "Math.h"
     26#include "MathDragon4.h"
    2727#include <math.h>
    2828
     
    866866    //  floor( log10(v) ) < ceil( (mantissaHighBitIdx + exponent) * log10(2) ) <= floor( log10(v) ) + 1
    867867    const tF64 log10_2 = 0.30102999566398119521373889472449;
    868     tS32 digitExponent = (tS32)(ceil(tF64((tS32)mantissaHighBitIdx + exponent) * log10_2 - 0.69));
     868        tS32 digitExponent = (tS32)(ceil(tF64((tS32)mantissaHighBitIdx + exponent) * log10_2 - 0.69));
    869869 
    870870    // if the digit exponent is smaller than the smallest desired digit for fractional cutoff,
     
    970970        // This is safe because (2^28 - 1) = 268435455 which is less than 429496729. This means
    971971        // that all values with a highest bit at index 27 are within range.         
    972         tU32 hiBlockLog2 = LogBase2(hiBlock);
     972                tU32 hiBlockLog2 = LogBase2(hiBlock);
    973973        RJ_ASSERT(hiBlockLog2 < 3 || hiBlockLog2 > 27);
    974974        tU32 shift = (32 + 27 - hiBlockLog2) % 32;
  • cpp/PrintFloat/Math.cpp

    r823 r834  
    2323******************************************************************************/
    2424
    25 #include "Math.h"
     25#include "MathDragon4.h"
    2626
    2727//******************************************************************************
  • cpp/PrintFloat/PrintFloat.cpp

    r833 r834  
    3131#include "PrintFloat.h"
    3232#include "Dragon4.h"
    33 #include "Math.h"
     33#include "MathDragon4.h"
    3434
    3535#include <string.h>
Note: See TracChangeset for help on using the changeset viewer.