commit | 2ee8d24ca273487caa0b9b75e8791db75a77f51e | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Wed Feb 11 15:29:15 2015 +0000 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Wed Feb 11 15:29:15 2015 +0000 |
tree | 63d0c9a75cccf38d32ae0fbf264cf0efe5c74abe | |
parent | 06d751969761d7351c06957f4ac832be980e6ae3 [diff] |
Simplify some constant-time code Some people recommend using bit operations to avoid the compiler producing a branch on `ret != 0`, but: - this makes the code less readable, - here I got a warning from some compilers about unsigned unary minus - and anyway modern compilers don't produce a branch here, checked on x64 and arm with various -O values.