forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add C10_LIKELY/C10_UNLIKELY macros (pytorch#12932)
Summary: Pull Request resolved: pytorch#12932 I was looking at some assembly for some code I was working on, and felt a desire to have likely()/unlikely() macros. I checked if we already had them, and we didn't. This commit adds them, and fixes up all known use sites to make use of it. Reviewed By: Maratyszcza Differential Revision: D10488399 fbshipit-source-id: 7476da208907480d49f02b37c7345c17d85c3db7
- Loading branch information
1 parent
8d3e7e2
commit 8c51462
Showing
2 changed files
with
25 additions
and
3 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