Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
What is the fastest/most efficient way to find the highest set bit (msb) in an integer in C?
#include <iostream> #include <intrin.h> using namespace std; int main() { auto Index = 13UL; const auto Mask = 0UL; _BitScanReverse(&Index, Mask); cout << Index << endl; }
run
|
edit
|
history
|
help
0
Computing the factorial of an integer using factorial and iteration
WinAPI not accessible
MSVC_example_fscanf_s_and_chars_wchars
virtual test
what is this
timeConversion
VC++ windows exception
template test
boost::asyc fail with error C2280: attempting to reference a deleted function
find vs at