MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
maiaconstants.h File Reference

Go to the source code of this file.

Functions

constexpr MLong IPOW2 (MInt x)
 
constexpr MFloat FPOW2 (MInt x)
 
constexpr MFloat FFPOW2 (MInt x)
 
constexpr MLong IPOW4 (MInt x)
 
constexpr MFloat FPOW4 (MInt x)
 

Function Documentation

◆ FFPOW2()

constexpr MFloat FFPOW2 ( MInt  x)
constexpr

Definition at line 162 of file maiaconstants.h.

162 {
163 ASSERT(x < 64, "FFPOW2(x > 63) will give errneous values for 64Bit Longs");
164 return (F1 / (1L << x));
165}

◆ FPOW2()

constexpr MFloat FPOW2 ( MInt  x)
constexpr

Definition at line 158 of file maiaconstants.h.

158 {
159 ASSERT(x < 64, "FPOW2(x > 63) will give errneous values for 64Bit Longs");
160 return (MFloat)(1L << x);
161}
double MFloat
Definition: maiatypes.h:52

◆ FPOW4()

constexpr MFloat FPOW4 ( MInt  x)
constexpr

Definition at line 169 of file maiaconstants.h.

169{ return (MFloat)(1L << x << x); }

◆ IPOW2()

constexpr MLong IPOW2 ( MInt  x)
constexpr

Definition at line 154 of file maiaconstants.h.

154 {
155 ASSERT(x < 64, "IPOW2(x > 63) will give errneous values for 64Bit Longs");
156 return 1L << x;
157}

◆ IPOW4()

constexpr MLong IPOW4 ( MInt  x)
constexpr

Definition at line 168 of file maiaconstants.h.

168{ return 1L << x << x; }