Esempio n. 1
0
 // Inlined on other architectures
 double MathUtils::exp(double value)
 {
     switch (isInfinite(value)) {
     case 1:
         return kInfinity;
     case -1:
         return +0;
     default:
         return expInternal(value);
     }
 }
Esempio n. 2
0
    double MathUtils::exp(double value)
    {
#ifdef X86_MATH
        switch (isInfinite(value)) {
        case 1:
            return kInfinity;
        case -1:
            return +0;
        default:
            return expInternal(value);
        }
#else
        return ::exp(value);
#endif /* X86_MATH */
    }