Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Visual Studio 2015 Compiler Bug: 64bit multiplication
#include <iostream> #include <stdint.h> int main(int, char**) { for (uint32_t i = 1; i < 3; ++i) { uint32_t a = i * 0xfbd1e995; uint64_t b = a; std::cout << a << " 32bit" << std::endl; std::cout << b << " 64bit" << std::endl; } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
zero size std::array parameter
Constant table but dynamic initialization at runtime
Catching divide-by-zero with /EHc
C++ move/copy constructor and assignment demo
kkk
Thing v.2
Rounding in C++
dynamic_cast in assert Causing Error
wrong up
Is min defined?
Please log in to post a comment.