Commit ad86752c by Nicolas Capens

Fix using floating-point exp2()

Change-Id: I2dc3942032458093bb132d7b86c34f05e1bb8137 Reviewed-on: https://swiftshader-review.googlesource.com/4443Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 2faebc5b
......@@ -125,6 +125,11 @@ namespace sw
!!(x & 0xFFFFFFFE) + \
!!(x & 0xFFFFFFFF))
inline float exp2(float x)
{
return exp2f(x);
}
inline int exp2(int x)
{
return 1 << x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment