浏览代码

Merge branch 'master' of github.com:bkaradzic/bx

Branimir Karadžić 10 年之前
父节点
当前提交
4d74f12398
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      include/bx/fpumath.h

+ 5 - 0
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);