]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - include/internal/constant_time_locl.h
Fix comment about undefined behavior of constant_time_msb
[thirdparty/openssl.git] / include / internal / constant_time_locl.h
index 8b714fb69fb187eadc82eaf170b5f903124f1945..c60e59c6a51c1dc272e4f3e140f77cf97fe3e07a 100644 (file)
@@ -31,12 +31,7 @@ extern "C" {
  *      c = constant_time_select(lt, a, b);
  */
 
-/*
- * Returns the given value with the MSB copied to all the other
- * bits. Uses the fact that arithmetic shift shifts-in the sign bit.
- * However, this is not ensured by the C standard so you may need to
- * replace this with something else on odd CPUs.
- */
+/* Returns the given value with the MSB copied to all the other bits. */
 static ossl_inline unsigned int constant_time_msb(unsigned int a);
 /* Convenience method for uint64_t. */
 static ossl_inline uint64_t constant_time_msb_64(uint64_t a);