All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
IsNaN.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_MATH_SHIMS_ISNAN_H_
23 #define _BLAZE_MATH_SHIMS_ISNAN_H_
24 
25 
26 //*************************************************************************************************
27 // Includes
28 //*************************************************************************************************
29 
31 
32 
33 //*************************************************************************************************
34 // Macro undefinition
35 //*************************************************************************************************
36 
37 #ifdef isnan
38 # undef isnan
39 #endif
40 
41 
42 namespace blaze {
43 
44 //=================================================================================================
45 //
46 // ISNAN SHIM
47 //
48 //=================================================================================================
49 
50 //*************************************************************************************************
64 template< typename T >
65 inline bool isnan( T a )
66 {
68  return a != a;
69 }
70 //*************************************************************************************************
71 
72 } // namespace blaze
73 
74 #endif