diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/system.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system.nim b/lib/system.nim index 778ce37ab..3accc6337 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3391,8 +3391,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. |