I made a library to do fraction calculation about a year ago. However the way the functions work is somewhat resembles to assembly.
https://redd.it/ylvmmb
@r_badcode
https://redd.it/ylvmmb
@r_badcode
Inherited a 10+ year old code base at my new position... this is an example of the less egregious shit I've come across
https://redd.it/ybvgd0
@r_badcode
https://redd.it/ybvgd0
@r_badcode
Thanks for the suggestion Visual Studio, never would've thought of that!
https://redd.it/z8ce2q
@r_badcode
https://redd.it/z8ce2q
@r_badcode