Fix mux comment and link

This commit is contained in:
Mamy André-Ratsimbazafy 2020-02-23 02:23:19 +01:00
parent dc46e86490
commit 05009f9407
No known key found for this signature in database
GPG Key ID: 7B88AD1FE79492E1
1 changed files with 3 additions and 4 deletions

View File

@ -215,10 +215,9 @@ template mux*[T: Ct](ctl: CTBool[T], x, y: T): T =
## So equivalent to ctl? x: y ## So equivalent to ctl? x: y
# #
# TODO verify assembly generated # TODO verify assembly generated
# as mentioned in https://cryptocoding.net/index.php/Coding_rules # Alternatives:
# the alternative `(x and ctl) or (y and -ctl)` # - https://cryptocoding.net/index.php/Coding_rules
# is optimized into a branch by Clang :/ # - https://www.cl.cam.ac.uk/~rja14/Papers/whatyouc.pdf
# See also: https://www.cl.cam.ac.uk/~rja14/Papers/whatyouc.pdf
# #
# TODO: assembly fastpath for conditional mov # TODO: assembly fastpath for conditional mov
let # Templates duplicate input params code let # Templates duplicate input params code