diff options
Diffstat (limited to 'source')
| -rw-r--r-- | source/core/slang-math.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/core/slang-math.h b/source/core/slang-math.h index 3d229ded8..231e59007 100644 --- a/source/core/slang-math.h +++ b/source/core/slang-math.h @@ -163,6 +163,11 @@ namespace Slang } } + template <typename T> + static T getLowestBit(T val) + { + return val & (-val); + } }; inline int FloatAsInt(float val) { |
