-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Z: Short circuit memCmp methods if addresses are equal
If addresses of two blocks of memory are equal, the content is equal too. We can jump to the end label without comparing the content. Four methods are updated to handle signed and unsigned result as well as constant and variable length. Signed-off-by: Ehsan Kiani Far <ehsan.kianifar@gmail.com>
- Loading branch information
1 parent
a2b3b25
commit 4af016d
Showing
1 changed file
with
46 additions
and
73 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