diff options
author | Jasper Jenkins <jasper.vs.jenkins@gmail.com> | 2019-06-03 11:33:24 -0700 |
---|---|---|
committer | Miran <narimiran@disroot.org> | 2019-06-03 20:33:24 +0200 |
commit | 55af21c6620a4e80f1a0de67e09760ba5ba08278 (patch) | |
tree | bb7d59a8afbd59b9aaf3b50614aaff1915449e9b /lib/system.nim | |
parent | d7d88ae2181089457056e5b134aa80e20372bdee (diff) | |
download | Nim-55af21c6620a4e80f1a0de67e09760ba5ba08278.tar.gz |
rename (un)likely (#11391)
Diffstat (limited to 'lib/system.nim')
-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 873aa6fc9..ca8eade71 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -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. |