[glibc/azanella/clang] stdlib: longlong.h: Do no use asm input cast for clang

Joseph Myers josmyers@redhat.com
Fri Apr 25 15:32:36 GMT 2025


On Wed, 16 Apr 2025, Adhemerval Zanella Netto wrote:

> I think what we really want to just to get rid of longlong.h and use
> more idiomatic and modern constructions. For instance, now we have
> stdc_leading_zeros and stdc_trailing_zeros that we can replace
> count_leading_zeros and count_trailing_zeros.

I think the basic point of longlong.h is that it's part of the libgcc 
implementation that's used to provide out-of-line implementations of 
various operations in the cases where they aren't expanded inline.  I.e. 
the main case where count_leading_zeros and count_trailing_zeros in 
longlong.h are of interest is for architectures where GCC expands the 
built-in functions to call libgcc functions (and in that case, longlong.h 
macros definitely can't be made to call the built-in functions because 
that would make the libgcc functions loop calling themselves).

-- 
Joseph S. Myers
josmyers@redhat.com



More information about the Libc-alpha mailing list