Add value_barriers in constant time select functions
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 21 Jun 2019 19:26:19 +0000 (21:26 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 18 Jul 2019 13:55:19 +0000 (15:55 +0200)
The barriers prevent the compiler from narrowing down the
possible value range of the mask and ~mask in the select
statements, which avoids the recognition of the select
and turning it into a conditional load or branch.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/9217)


No differences found