-
Notifications
You must be signed in to change notification settings - Fork 405
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve memory alignment in FixedMemory (#97)
Improve memory alignment in FixedMemory This commit enhances the memory management in FixedMemory to ensure word-aligned sizing. Previously, the memory could be resized to an odd number of bytes, which is not ideal for word-based operations. Key changes: - Modify the resize logic to always expand the memory to a word-aligned size - Adjust the write operation to occur after proper resizing This approach ensures that all memory operations are performed on word-aligned boundaries, improving efficiency and reducing potential alignment issues. Co-authored-by: duc-nx <>
- Loading branch information
Showing
4 changed files
with
65 additions
and
20 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
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