rename (un)likely (#11391)
This commit is contained in:
parent
d7d88ae218
commit
55af21c662
2 changed files with 6 additions and 6 deletions
|
|
@ -3387,8 +3387,8 @@ else:
|
|||
|
||||
|
||||
when not defined(JS):
|
||||
proc likelyProc(val: bool): bool {.importc: "likely", nodecl, nosideeffect.}
|
||||
proc unlikelyProc(val: bool): bool {.importc: "unlikely", nodecl, nosideeffect.}
|
||||
proc likelyProc(val: bool): bool {.importc: "NIM_LIKELY", nodecl, nosideeffect.}
|
||||
proc unlikelyProc(val: bool): bool {.importc: "NIM_UNLIKELY", nodecl, nosideeffect.}
|
||||
|
||||
template likely*(val: bool): bool =
|
||||
## Hints the optimizer that `val` is likely going to be true.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue