From 47b7bdce96ff920b00e9a7e3866bca5e60e76407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 6 Dec 2015 20:07:48 -0800 Subject: [PATCH] Added frsqrt. --- include/bx/fpumath.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/bx/fpumath.h b/include/bx/fpumath.h index e40fd26..a5681a8 100644 --- a/include/bx/fpumath.h +++ b/include/bx/fpumath.h @@ -129,6 +129,11 @@ namespace bx return sqrtf(_a); } + inline float frsqrt(float _a) + { + return 1.0f/fsqrt(_a); + } + inline float ffract(float _a) { return _a - floorf(_a);