-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Endian fixes for the multiprecision code.
The code mostly uses multiprecision integers built up from arrays of 32 bit integers, but will in some cases interchangably treat said arrays as having 16 bit components instead, expecting to read the least significant bytes at lower address and most significant bytes at higher addresses. This change introduces two helper functions to emulate this behaviour - Get_HalfWord() and Set_HalfWord() - which are used instead of directly accessing the 32 bit integer arrays with 16 bit pointers. XMP_Encode() also got endian fixes that are unrelated to the above.
- Loading branch information
Showing
2 changed files
with
133 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters