コード例 #1
0
ファイル: MathUtilsWin.cpp プロジェクト: ajwfrost/avmplus
 // Inlined on other architectures
 double MathUtils::exp(double value)
 {
     switch (isInfinite(value)) {
     case 1:
         return kInfinity;
     case -1:
         return +0;
     default:
         return expInternal(value);
     }
 }
コード例 #2
0
ファイル: MathUtilsWin.cpp プロジェクト: changm/tessa
    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 */
    }