mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-08-26 00:12:01 +00:00
Retro seemingly avoided using the Dolphin typedefs in most places, opting to use int/uint instead. This likely means they didn't use u8/s8/u16/s16/etc either. Former-commit-id: 133326ae406a0ebc76f56f8bcb489fda280be2be
13 lines
225 B
C++
13 lines
225 B
C++
#include "Collision/CMaterialList.hpp"
|
|
|
|
int CMaterialList::BitPosition(u64 flags) {
|
|
for (int ret = 0, i = 0; i < 32; ++i) {
|
|
if ((flags & 1) != 0) {
|
|
return ret;
|
|
}
|
|
flags >>= 1;
|
|
++ret;
|
|
}
|
|
return -1;
|
|
}
|