From 95ba49a7643ee73890fb9e5d513ed64664d51135 Mon Sep 17 00:00:00 2001 From: Zecyel Date: Tue, 30 Sep 2025 16:25:40 +0800 Subject: [PATCH] Update bits.c for demo of secondLowestZeroBit --- bits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bits.c b/bits.c index 44c3fd3..4370443 100644 --- a/bits.c +++ b/bits.c @@ -259,7 +259,7 @@ int swapNibblePairs(int x) { // P9 /* * secondLowestZeroBit - return a mask that marks the position of the second least significant 0 bit - * Examples: secondLowestZeroBit(0xFFFFFFFD) = 0x4, secondLowestZeroBit(0x7FFFFFFF) = 0 + * Examples: secondLowestZeroBit(0xFFFFFFFC) = 0x4, secondLowestZeroBit(0x7FFFFFFF) = 0 * secondLowestZeroBit(-1) = 0 * Legal ops: ! ~ & ^ | + << >> * Max ops: 8