diff options
Diffstat (limited to 'source/blender/blenlib/intern/math_base_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_base_inline.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_base_inline.c b/source/blender/blenlib/intern/math_base_inline.c index b364ff73e4f..fc413457122 100644 --- a/source/blender/blenlib/intern/math_base_inline.c +++ b/source/blender/blenlib/intern/math_base_inline.c @@ -122,5 +122,10 @@ MINLINE float maxf(float a, float b) return (a > b)? a: b; } +MINLINE float signf(float f) +{ + return (f < 0.f)? -1.f: 1.f; +} + #endif /* BLI_MATH_BASE_INLINE */ |