/Users/kmartin/Documents/files/code/cpp/OScpp/COIN-OS/OS/src/OSUtils/OSCommonUtil.cpp

Go to the documentation of this file.
00001 
00020 #include "OSCommonUtil.h"
00021 //using namespace std;
00022 
00023 CommonUtil::CommonUtil(){
00024 }
00025 
00026 CommonUtil::~CommonUtil(){
00027 }
00028 
00029 
00030 /* below is the CoinUtils implementation
00031 inline bool CoinIsnan(double val)
00032 {
00033 #ifdef MY_C_ISNAN
00034   //    return static_cast<bool>(MY_C_ISNAN(val));
00035     return MY_C_ISNAN(val)!=0;
00036 #else
00037     return false;
00038 #endif
00039 }
00040 */
00041 
00042 
00043         
00044 bool CommonUtil::ISOSNAN( double number){
00045 // copy from CoinUtils  -- CoinFinite.hpp
00046 #ifdef MY_C_ISNAN
00047         if(MY_C_ISNAN( number) == true){
00048                 return true;
00049         }
00050         else return(number == OSNAN);
00051 #else
00052         //#ifdef NAN 
00053         //      return isnan( number);
00054         //#elif defined NaN
00055         //      return isnan( number);
00056         //#elif defined nan
00057         //      return isnan( number);
00058         //#else
00059         //      return (number == OSNAN);
00060         //#endif
00061         return (number == OSNAN);
00062 #endif
00063 }
00064 
00065 
00066 

Generated on Sat Mar 29 22:38:03 2008 by  doxygen 1.5.3