Mercurial > mm7
diff OurMath.h @ 2340:dc822157c98d
Moving functions from unsorted_subs.h pt4
author | Grumpy7 |
---|---|
date | Sun, 06 Apr 2014 12:50:35 +0200 |
parents | 8e9be4fa33a8 |
children |
line wrap: on
line diff
--- a/OurMath.h Sun Apr 06 12:37:28 2014 +0200 +++ b/OurMath.h Sun Apr 06 12:50:35 2014 +0200 @@ -30,6 +30,9 @@ __int64 fixpoint_sub_unknown(int, int); int fixpoint_from_float(float value); int fixpoint_from_int(int lhv, int rhv); +int integer_sqrt(int val); +int __fastcall GetDiceResult(unsigned int uNumDice, unsigned int uDiceSides); // idb +inline int round_to_int(float x) { return (int)floor(x + 0.5f); } template <typename FloatType> inline int bankersRounding(const FloatType& value)