From: Mark Wooding Date: Wed, 24 Dec 2014 17:57:53 +0000 (+0000) Subject: base/ct.[ch]: Fix stupid editorial error in commentary for `ct_intle'. X-Git-Tag: 2.2.0~21 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/c4377d0e42d4d0e3e9781f9d9a8c1a499222aafe?ds=inline;hp=--cc base/ct.[ch]: Fix stupid editorial error in commentary for `ct_intle'. Also, I checked through the disassembly for these functions, just to check that GCC isn't inserting comparisons or branches where they aren't wanted. It isn't -- at least, not yet. --- c4377d0e42d4d0e3e9781f9d9a8c1a499222aafe diff --git a/base/ct.c b/base/ct.c index ef2adeb6..ffb15b09 100644 --- a/base/ct.c +++ b/base/ct.c @@ -60,7 +60,7 @@ int ct_inteq(uint32 x, uint32 y) * * Arguments: @uint32 x, y@ = two 32-bit unsigned integers * - * Returns: One if %$x \le y$% are equal, zero if @x@ is greater. + * Returns: One if %$x \le y$%, zero if @x@ is greater. * * Use: Answers whether two integers are ordered, in constant time. */ diff --git a/base/ct.h b/base/ct.h index 00cecc07..3066e4f2 100644 --- a/base/ct.h +++ b/base/ct.h @@ -53,7 +53,7 @@ extern int ct_inteq(uint32 /*x*/, uint32 /*y*/); * * Arguments: @uint32 x, y@ = two 32-bit unsigned integers * - * Returns: One if %$x \le y$% are equal, zero if @x@ is greater. + * Returns: One if %$x \le y$%, zero if @x@ is greater. * * Use: Answers whether two integers are ordered, in constant time. */