Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
msvc compile optimization demo...
/* author: ripeip msvc compiler optimization demo */ #include <iostream> #include <cstdint> std::uint32_t const&& fast_idiv_by50(std::uint32_t const&& ecx) { constexpr std::uint32_t&& eax = 0x51EB851F; std::uint32_t edx = (static_cast<std::uint64_t>(ecx) * static_cast<std::uint64_t>(eax) >> 32); edx = (edx >> 4); std::int32_t b_edx = edx; edx = (edx >> 0x1f); return b_edx + edx; } int main() { std::cout << reinterpret_cast<void*>(fast_idiv_by50(0x50000)) << "\n"; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Hangman
Template function declaration to avoid usage of template in T::template f<int>()
3 sayinin toplami
list multiply
MSVC-IsBaseOf
unresolved external symbol
Temp 1
c++ pure apstraction
Matrix_1
print adapted struct
Please log in to post a comment.