tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 81ab782a6375d6c788573ef2c04c93cc89cb5cc4
parent af67487d7bfae08784886362e9b208acd998c389
Author: Nick Mathewson <nickm@torproject.org>
Date:   Thu, 22 May 2025 12:05:12 -0400

polyval: clean up cpuid code

(Based on comments by Alex Xu)

Diffstat:
Msrc/ext/polyval/polyval.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/ext/polyval/polyval.c b/src/ext/polyval/polyval.c @@ -431,10 +431,10 @@ PV_DECLARE(, , u128_from_bytes_ctmul, void polyval_detect_implementation(void) { - unsigned int eax, ebc, ecx, edx; + unsigned int eax, ebx, ecx, edx; use_pclmul = false; - if (__get_cpuid(1, &eax, &ebc, &ecx, &edx)) { - if (0 != (ecx & (1<<1))) { + if (__get_cpuid(1, &eax, &ebx, &ecx, &edx)) { + if (0 != (ecx & bit_PCLMUL)) { use_pclmul = true; } }