aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/ct_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/ct_utils.h')
-rw-r--r--src/lib/utils/ct_utils.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/utils/ct_utils.h b/src/lib/utils/ct_utils.h
index f2e745293..a23312fdb 100644
--- a/src/lib/utils/ct_utils.h
+++ b/src/lib/utils/ct_utils.h
@@ -287,8 +287,7 @@ class Mask
*/
T select(T x, T y) const
{
- // (x & value()) | (y & ~value())
- return static_cast<T>(y ^ (value() & (x ^ y)));
+ return choose(value(), x, y);
}
T select_and_unpoison(T x, T y) const