diff options
author | Sergej Reich <sergej.reich@googlemail.com> | 2014-11-11 20:16:20 +0300 |
---|---|---|
committer | Sergej Reich <sergej.reich@googlemail.com> | 2014-11-11 20:16:20 +0300 |
commit | 52d571e189d5ba48dbbc2ad0cf24608f30c6bbc2 (patch) | |
tree | 1677047e684f3c44168e3be30ceddec926782110 /source/blender/blenlib/BLI_math_base.h | |
parent | 490b73ff22ce554eaed6f0804b1fd1e9f36ceb43 (diff) |
Avoid calling powf with integer exponent in more places
Move powX functions from particle code into math library and use them.
Diffstat (limited to 'source/blender/blenlib/BLI_math_base.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_base.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h index 07de074e717..5711d09b530 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -157,6 +157,11 @@ static const int NAN_INT = 0x7FC00000; /******************************* Float ******************************/ +MINLINE float pow2f(float x); +MINLINE float pow3f(float x); +MINLINE float pow4f(float x); +MINLINE float pow7f(float x); + MINLINE float sqrt3f(float f); MINLINE double sqrt3d(double d); |