Skip to content

Commit 0cef3d4

Browse files
committed
Apply suggestions
1 parent 504f08f commit 0cef3d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler-rt/lib/builtins/clzdi2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
#if ((defined(__sparc__) && defined(__arch64__)) || defined(__mips64) || \
1818
(defined(__riscv) && __SIZEOF_POINTER__ >= 8))
1919
// On 64-bit architectures with neither a native clz instruction nor a native
20-
// ctz instruction, resolves __builtin_clz resolves to __clzdi2 rather than
21-
// __clzsi2, leading to infinite recursion.
22-
// This is because on those platforms, libgcc doesn't ship with __clzsi2.
20+
// ctz instruction, `__builtin_clz` resolves to `__clzdi2` rather than
21+
// __clzsi2 as libgcc does not ship with `__clzsi2`, leading to infinite
22+
// recursion.
2323
#define __builtin_clz(a) __clzsi2(a)
2424
extern int __clzsi2(si_int);
2525
#endif

0 commit comments

Comments
 (0)