Ignore:
Timestamp:
Jul 4, 2006, 9:13:32 PM (19 years ago)
Author:
darin
Message:

Reviewed by Maciej.
Tweaked a bit by Darin.

  • wtf/MathExtras.h: Added include of <float.h>. (isinf): Fix to return false for NAN. (wtf_fmod): Added. An inline that works around the bug.
  • kjs/nodes.cpp:
  • kjs/number_object.cpp:
  • kjs/operations.cpp:
  • kjs/value.cpp: Added includes of MathExtras.h to all files using fmod.
  • JavaScriptCore.xcodeproj/project.pbxproj: Let Xcode 2.3 have its way with the project.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/operations.cpp

    r13821 r15155  
    2424#include "operations.h"
    2525
     26#include "object.h"
    2627#include <math.h>
    2728#include <stdio.h>
     29#include <wtf/MathExtras.h>
    2830
    2931#if HAVE(FUNC_ISINF) && HAVE(IEEEFP_H)
     
    3537#endif
    3638
    37 #include "object.h"
    38 
    3939namespace KJS {
    4040   
    4141#if !PLATFORM(DARWIN)
    42 // FIXME: should probably be inlined on other platforms too, and controlled exclusively
    43 // by HAVE macros
    44    
    45    
     42
     43// FIXME: Should probably be inlined on non-Darwin platforms too, and controlled exclusively
     44// by HAVE macros rather than PLATFORM.
     45
     46// FIXME: Merge with isnan in MathExtras.h and remove this one entirely.
    4647bool isNaN(double d)
    4748{
     
    5556}
    5657
     58// FIXME: Merge with isinf in MathExtras.h and remove this one entirely.
    5759bool isInf(double d)
    5860{
Note: See TracChangeset for help on using the changeset viewer.