mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 02:04:35 +00:00
Fixed /W4 warnings
This commit is contained in:
parent
2c2d3931ee
commit
c4794851aa
@ -488,23 +488,23 @@ namespace bitfieldReverse
|
||||
|
||||
std::clock_t Timestamps0 = std::clock();
|
||||
|
||||
for(glm::uint32 k = 0; k < Count; ++k)
|
||||
Data[k] = glm::bitfieldReverse(k);
|
||||
for(glm::uint64 k = 0; k < Count; ++k)
|
||||
Data[static_cast<std::size_t>(k)] = glm::bitfieldReverse(k);
|
||||
|
||||
std::clock_t Timestamps1 = std::clock();
|
||||
|
||||
for(glm::uint64 k = 0; k < Count; ++k)
|
||||
Data[k] = bitfieldReverseLoop(k);
|
||||
Data[static_cast<std::size_t>(k)] = bitfieldReverseLoop<glm::uint64>(k);
|
||||
|
||||
std::clock_t Timestamps2 = std::clock();
|
||||
|
||||
for(glm::uint64 k = 0; k < Count; ++k)
|
||||
Data[k] = bitfieldReverseUint64(k);
|
||||
Data[static_cast<std::size_t>(k)] = bitfieldReverseUint64(k);
|
||||
|
||||
std::clock_t Timestamps3 = std::clock();
|
||||
|
||||
for(glm::uint64 k = 0; k < Count; ++k)
|
||||
Data[k] = bitfieldReverseOps(k);
|
||||
Data[static_cast<std::size_t>(k)] = bitfieldReverseOps(k);
|
||||
|
||||
std::clock_t Timestamps4 = std::clock();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user