Ignore:
Timestamp:
Nov 8, 2007, 1:49:20 PM (18 years ago)
Author:
Adam Roben
Message:

Stop using KJS inside of MathExtras.h

Reviewed by Darin.

  • wtf/MathExtras.h: Removed an unused header, and a now-unused forward-declaration. (wtf_atan2): Use std::numeric_limits intead of KJS.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/MathExtras.h

    r27607 r27614  
    3333#if COMPILER(MSVC)
    3434
    35 #include "kjs/operations.h"
    3635#include <xmath.h>
    3736#include <limits>
     
    4039#include <float.h>
    4140#endif
    42 
    43 namespace KJS {
    44     extern const double NaN;
    45 }
    4641
    4742#endif
     
    8580    static double posInf = std::numeric_limits<double>::infinity();
    8681    static double negInf = -std::numeric_limits<double>::infinity();
     82    static double nan = std::numeric_limits<double>::quiet_NaN();
    8783
    88     double result = KJS::NaN;
     84    double result = nan;
    8985
    9086    if (x == posInf && y == posInf)
Note: See TracChangeset for help on using the changeset viewer.