Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
it's no longer the only other answer
Source Link
anon
anon

Take note of the different condition. There are a couple of other simplifying improvements, but they're mentioned in the other answeranother answer.

Take note of the different condition. There are a couple of other simplifying improvements, but they're mentioned in the other answer.

Take note of the different condition. There are a couple of other simplifying improvements, but they're mentioned in another answer.

added 386 characters in body
Source Link
anon
anon

Finally, what do you mean by "close to the metal"? This is just C with a tiny sprinkling of C++, which are both high-level languages. Not as high-level as, say, Python, but the definition of a high-level language is that it's abstracted from any one particular machine, which C and C++ are. There's nothing close to the metal here. That would be machine code, or maybe Assembly.


Finally, what do you mean by "close to the metal"? This is just C with a tiny sprinkling of C++, which are both high-level languages. Not as high-level as, say, Python, but the definition of a high-level language is that it's abstracted from any one particular machine, which C and C++ are. There's nothing close to the metal here. That would be machine code, or maybe Assembly.

Fixed issue pointed out in comments by https://codereview.stackexchange.com/users/137071/qbt937
Source Link
anon
anon
Loading
added 408 characters in body
Source Link
anon
anon
Loading
added 70 characters in body
Source Link
anon
anon
Loading
whoops that was wrong
Source Link
anon
anon
Loading
added 872 characters in body
Source Link
anon
anon
Loading
added 872 characters in body
Source Link
anon
anon
Loading
Source Link
anon
anon
Loading