Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add portability to 32-bit processors #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mdhahne
Copy link

@mdhahne mdhahne commented Oct 26, 2020

Tested on a Teensy 3.2

By specifying a 16-bit int, we ensure that 2's Complement signing will work on processors who's default int is 32 bits. Before this change, the outputs presented as through 16-bit integer underflow was occurring, because within the 32-bit default int of the processor, it kind of was.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant