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
Code
Matrix_1
delete from list
binary
#8
masodijegy.cpp
Triangle N5
#33
IBE FT ParseFileName
Full System Specifications version 2