mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 00:35:33 +00:00
Fix the documentation of has_even_parity
The documentation had the boolean meaning of the return value inverted. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
ed9fbc6443
commit
a2e518daf5
|
@ -67,7 +67,7 @@
|
|||
*
|
||||
* The expected parity is even so that 0 is considered a valid encoding.
|
||||
*
|
||||
* Return 0 if value has even parity and a nonzero value otherwise. */
|
||||
* Return a nonzero value if value has even parity and 0 otherwise. */
|
||||
int has_even_parity( uint32_t value )
|
||||
{
|
||||
value ^= value >> 16;
|
||||
|
|
Loading…
Reference in a new issue