mirror of
https://github.com/codex-storage/constantine.git
synced 2025-01-14 04:54:24 +00:00
Fix mux comment and link
This commit is contained in:
parent
dc46e86490
commit
05009f9407
@ -215,10 +215,9 @@ template mux*[T: Ct](ctl: CTBool[T], x, y: T): T =
|
||||
## So equivalent to ctl? x: y
|
||||
#
|
||||
# TODO verify assembly generated
|
||||
# as mentioned in https://cryptocoding.net/index.php/Coding_rules
|
||||
# the alternative `(x and ctl) or (y and -ctl)`
|
||||
# is optimized into a branch by Clang :/
|
||||
# See also: https://www.cl.cam.ac.uk/~rja14/Papers/whatyouc.pdf
|
||||
# Alternatives:
|
||||
# - https://cryptocoding.net/index.php/Coding_rules
|
||||
# - https://www.cl.cam.ac.uk/~rja14/Papers/whatyouc.pdf
|
||||
#
|
||||
# TODO: assembly fastpath for conditional mov
|
||||
let # Templates duplicate input params code
|
||||
|
Loading…
x
Reference in New Issue
Block a user