All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Invert.h
Go to the documentation of this file.
1 //=================================================================================================
20 //=================================================================================================
21 
22 #ifndef _BLAZE_MATH_SHIMS_INVERT_H_
23 #define _BLAZE_MATH_SHIMS_INVERT_H_
24 
25 
26 namespace blaze {
27 
28 //=================================================================================================
29 //
30 // INVERT SHIMS
31 //
32 //=================================================================================================
33 
34 //*************************************************************************************************
44 inline float inv( float a )
45 {
46  return ( 1.0F / a );
47 }
48 //*************************************************************************************************
49 
50 
51 //*************************************************************************************************
61 inline double inv( double a )
62 {
63  return ( 1.0 / a );
64 }
65 //*************************************************************************************************
66 
67 
68 //*************************************************************************************************
78 inline long double inv( long double a )
79 {
80  return ( 1.0L / a );
81 }
82 //*************************************************************************************************
83 
84 } // namespace blaze
85 
86 #endif