Fixed usubBorrw

This commit is contained in:
Christophe Riccio
2014-03-16 12:33:00 +01:00
parent 00e860eeee
commit 3f327d5e70
3 changed files with 25 additions and 8 deletions

View File

@@ -197,14 +197,14 @@ namespace findLSB
genType Value;
genType Return;
};
type<int> const DataI32[] =
{
{0x00000001, 0},
{0x00000003, 0},
{0x00000002, 1}
{0x00000003, 0},
{0x00000002, 1}
};
int test()
{
int Error(0);
@@ -215,11 +215,27 @@ namespace findLSB
Error += DataI32[i].Return == Result ? 0 : 1;
assert(!Error);
}
return Error;
}
}//findLSB
namespace usubBorrow
{
int test()
{
int Error(0);
glm::uint x = 16;
glm::uint y = 17;
glm::uint Borrow = 0;
glm::uint Result = glm::usubBorrow(x, y, Borrow);
return Error;
}
}//namespace usubBorrow
int main()
{
int Error = 0;