I am to the point in a project when it is time to get serious about using Jeremy Leach’s Q16.16 Arithmetic Module. I’ve had a quick play with the decimal addition and am pretty excited about what it will do. If the rest of it works that well it will be invaluable.
The program as written includes demo code and other symbols and comments that seem unnecessary for the core signed math modules to run, and I would like to remove everything that doesn’t need to be there to do the math plus a few comments to visually divide the code into functional modules, etc.
In short, I would like to get rid of all code that isn’t necessary for the modules to work, but I don’t have the full understanding of what everything does to have the confidence to strip out things like the “User Macro Definitions” although I believe that they are unnecessary.
Would anyone be interested in taking a swipe at removing all coding that isn’t required for the four math functions to work? Most especially, I’d like to remove any SYMBOLS and VARIABLE definitions that are not needed for the modules to work.
Attached is Jeremy's code.
The program as written includes demo code and other symbols and comments that seem unnecessary for the core signed math modules to run, and I would like to remove everything that doesn’t need to be there to do the math plus a few comments to visually divide the code into functional modules, etc.
In short, I would like to get rid of all code that isn’t necessary for the modules to work, but I don’t have the full understanding of what everything does to have the confidence to strip out things like the “User Macro Definitions” although I believe that they are unnecessary.
Would anyone be interested in taking a swipe at removing all coding that isn’t required for the four math functions to work? Most especially, I’d like to remove any SYMBOLS and VARIABLE definitions that are not needed for the modules to work.
Attached is Jeremy's code.