From f22e0882111d1175c4456126efd4bec5fbd7b5c8 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 22 Mar 2026 17:51:56 -0700 Subject: [PATCH] Clarified SDL_MostSignificantBitIndex32() documentation Fixes https://github.com/libsdl-org/SDL/issues/15247 --- include/SDL3/SDL_bits.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/SDL3/SDL_bits.h b/include/SDL3/SDL_bits.h index ddb5cdbabe..d3310ab15c 100644 --- a/include/SDL3/SDL_bits.h +++ b/include/SDL3/SDL_bits.h @@ -48,8 +48,7 @@ extern __inline int _SDL_bsr_watcom(Uint32); /** * Get the index of the most significant (set) bit in a 32-bit number. * - * Result is undefined when called with 0. This operation can also be stated - * as "count leading zeroes" and "log base 2". + * This operation can also be stated as "count leading zeroes" and "log base 2". * * Note that this is a forced-inline function in a header, and not a public * API function available in the SDL library (which is to say, the code is