-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Directly treat values in byte array as appropriate types and directly…
… load/store from them Normally there will be a temporary result-holder variable with the desired type, and there will be 2 - 4 statements to load/store each byte to / from the byte array. The new method just directly convert the `uint8_t` pointer to the desired type (either `uint32_t` or `uint16_t`), and then perform load/store directly on them. This reduces about 13 instructions for each load[4,2]/store[4,2] function.
- Loading branch information
1 parent
80dded3
commit 6970cf9
Showing
1 changed file
with
43 additions
and
18 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