Changeset 2173 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Sep 26, 2002, 8:20:47 AM (23 years ago)
Author:
darin
Message:

Fix the infinity problem Dave worked around. We didn't have the
configuration flags set right to make infinity work. Setting those
properly made everything work without changes to min and max.

  • kjs/config.h: Define HAVE_FUNC_ISINF, HAVE_STRING_H, and also WORDS_BIGENDIAN (if on ppc).
  • kjs/math_object.cpp: (MathFuncImp::call): Roll out min and max changes from yesterday.
Location:
trunk/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r2168 r2173  
     12002-09-26  Darin Adler  <[email protected]>
     2
     3        Fix the infinity problem Dave worked around. We didn't have the
     4        configuration flags set right to make infinity work. Setting those
     5        properly made everything work without changes to min and max.
     6
     7        * kjs/config.h: Define HAVE_FUNC_ISINF, HAVE_STRING_H, and
     8        also WORDS_BIGENDIAN (if on ppc).
     9
     10        * kjs/math_object.cpp: (MathFuncImp::call): Roll out min and max
     11        changes from yesterday.
     12
    1132002-09-25  David Hyatt  <[email protected]>
    214
  • trunk/JavaScriptCore/ChangeLog-2002-12-03

    r2168 r2173  
     12002-09-26  Darin Adler  <[email protected]>
     2
     3        Fix the infinity problem Dave worked around. We didn't have the
     4        configuration flags set right to make infinity work. Setting those
     5        properly made everything work without changes to min and max.
     6
     7        * kjs/config.h: Define HAVE_FUNC_ISINF, HAVE_STRING_H, and
     8        also WORDS_BIGENDIAN (if on ppc).
     9
     10        * kjs/math_object.cpp: (MathFuncImp::call): Roll out min and max
     11        changes from yesterday.
     12
    1132002-09-25  David Hyatt  <[email protected]>
    214
  • trunk/JavaScriptCore/ChangeLog-2003-10-25

    r2168 r2173  
     12002-09-26  Darin Adler  <[email protected]>
     2
     3        Fix the infinity problem Dave worked around. We didn't have the
     4        configuration flags set right to make infinity work. Setting those
     5        properly made everything work without changes to min and max.
     6
     7        * kjs/config.h: Define HAVE_FUNC_ISINF, HAVE_STRING_H, and
     8        also WORDS_BIGENDIAN (if on ppc).
     9
     10        * kjs/math_object.cpp: (MathFuncImp::call): Roll out min and max
     11        changes from yesterday.
     12
    1132002-09-25  David Hyatt  <[email protected]>
    214
  • trunk/JavaScriptCore/kjs/config.h

    r901 r2173  
    1 
     1#define HAVE_FUNC_ISINF 1
     2#define HAVE_FUNC_ISNAN 1
     3#define HAVE_STRING_H 1
     4#define HAVE_STRINGS_H 1
     5#define HAVE_SYS_TIME_H 1
    26#define TIME_WITH_SYS_TIME 1
    3 #define HAVE_SYS_TIME_H 1
    4 #define HAVE_FUNC_ISNAN 1
    5 #define HAVE_STRINGS_H
     7#ifdef __ppc__
     8#define WORDS_BIGENDIAN 1
     9#endif
  • trunk/JavaScriptCore/kjs/math_object.cpp

    r2168 r2173  
    183183      if ( isNaN( val ) )
    184184      {
    185             result = NaN;
     185        result = NaN;
    186186        break;
    187187      }
    188       // Comparing a number to negative infinity doesn't work. 
    189       // -dwh
    190       if ( k == 0 || val > result )
     188      if ( val > result )
    191189        result = val;
    192190    }
     
    203201        break;
    204202      }
    205       // Comparing a number to positive infinity doesn't work. 
    206       // -dwh
    207       if ( k == 0 || val < result )
     203      if ( val < result )
    208204        result = val;
    209205    }
Note: See TracChangeset for help on using the changeset viewer.