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
infix to postfix v 3.0 with improved eval()
Matrix paths right-down only, going through XY
복소수 클래스 생성하기
Wrong type deduction of std::valarray expression
ria
32
operator new / delete
Hangman
codecvt wide string conversion with multibyte chars and locale + concatenation
sharedptr emptiness