Closed deltabeard closed 5 years ago
Some systems are faster when they use specific integer types. For variables where the width does not matter, using uint_fast#_t instead since it should provide the most efficient code for the platform.
uint_fast#_t
https://github.com/deltabeard/Peanut-GB/blob/dad797741c5a100bc7e753ef6baf7eb8ca18ddc4/peanut_gb.h#L3021
Additionally, uint32_t could become uint_fast32_t in the following function: https://github.com/deltabeard/Peanut-GB/blob/dad797741c5a100bc7e753ef6baf7eb8ca18ddc4/peanut_gb.h#L3136
uint32_t
uint_fast32_t
A smaller width could be used where small size is preferable over performance, as in: https://github.com/deltabeard/Peanut-GB/blob/dad797741c5a100bc7e753ef6baf7eb8ca18ddc4/peanut_gb.h#L3194
Where the code is executed very infrequently.
Some systems are faster when they use specific integer types. For variables where the width does not matter, using
uint_fast#_t
instead since it should provide the most efficient code for the platform.https://github.com/deltabeard/Peanut-GB/blob/dad797741c5a100bc7e753ef6baf7eb8ca18ddc4/peanut_gb.h#L3021
Additionally,
uint32_t
could becomeuint_fast32_t
in the following function: https://github.com/deltabeard/Peanut-GB/blob/dad797741c5a100bc7e753ef6baf7eb8ca18ddc4/peanut_gb.h#L3136A smaller width could be used where small size is preferable over performance, as in: https://github.com/deltabeard/Peanut-GB/blob/dad797741c5a100bc7e753ef6baf7eb8ca18ddc4/peanut_gb.h#L3194
Where the code is executed very infrequently.