gcc/libgcc/config
Christophe Lyon 5143faee0d libgcc: use __builtin_clz and __builtin_ctz in libbid
This patch replaces libbid's implementations of clz and ctz for 32 and
64 bits inputs which used several masks, and switches to the
corresponding builtins. This will provide a better implementation,
especially on targets with clz/ctz instructions.

2022-05-06  Christophe Lyon  <christophe.lyon@arm.com>

libgcc/config/libbid/ChangeLog:

	* bid_binarydecimal.c (CLZ32_MASK16): Delete.
	(CLZ32_MASK8): Delete.
	(CLZ32_MASK4): Delete.
	(CLZ32_MASK2): Delete.
	(CLZ32_MASK1): Delete.
	(clz32_nz): Use __builtin_clz.
	(ctz32_1bit): Delete.
	(ctz32): Use __builtin_ctz.
	(CLZ64_MASK32): Delete.
	(CLZ64_MASK16): Delete.
	(CLZ64_MASK8): Delete.
	(CLZ64_MASK4): Delete.
	(CLZ64_MASK2): Delete.
	(CLZ64_MASK1): Delete.
	(clz64_nz): Use __builtin_clzl.
	(ctz64_1bit): Delete.
	(ctz64): Use __builtin_ctzl.
2022-05-20 09:36:08 +02:00
..
aarch64 [AArch64] add barriers to ool __sync builtins 2022-05-13 17:09:43 +00:00
alpha Update copyright years. 2022-01-03 10:42:10 +01:00
arc arc: Add DWARF2 alternate CFA column. 2022-01-14 12:24:52 +02:00
arm Update copyright years. 2022-01-03 10:42:10 +01:00
avr Update copyright years. 2022-01-03 10:42:10 +01:00
bfin Update copyright years. 2022-01-03 10:42:10 +01:00
bpf
c6x Update copyright years. 2022-01-03 10:42:10 +01:00
cr16 Update copyright years. 2022-01-03 10:42:10 +01:00
cris Update copyright years. 2022-01-03 10:42:10 +01:00
csky Update copyright years. 2022-01-03 10:42:10 +01:00
epiphany Update copyright years. 2022-01-03 10:42:10 +01:00
fr30 Update copyright years. 2022-01-03 10:42:10 +01:00
frv Update copyright years. 2022-01-03 10:42:10 +01:00
ft32 Update copyright years. 2022-01-03 10:42:10 +01:00
gcn GCN: Implement __atomic_compare_exchange_{1,2} in libgcc [PR102215] 2022-03-09 19:34:48 +01:00
h8300 Update copyright years. 2022-01-03 10:42:10 +01:00
i386 libgcc: Fix __gthr_i486_lock_cmp_xchg clobber for Windows 2022-01-15 13:32:05 +00:00
ia64 libgcc: IA64: don't compile glibc-based unwinder without libc headers 2022-04-08 08:01:06 +01:00
iq2000 Update copyright years. 2022-01-03 10:42:10 +01:00
libbid libgcc: use __builtin_clz and __builtin_ctz in libbid 2022-05-20 09:36:08 +02:00
lm32 Update copyright years. 2022-01-03 10:42:10 +01:00
loongarch LoongArch Port: libgcc 2022-03-29 17:43:35 +08:00
m32c Update copyright years. 2022-01-03 10:42:10 +01:00
m32r Update copyright years. 2022-01-03 10:42:10 +01:00
m68k libgcc: m68k: avoid TEXTRELs in shared library (PR 86224) 2022-03-19 15:14:21 -04:00
mcore Update copyright years. 2022-01-03 10:42:10 +01:00
microblaze Update copyright years. 2022-01-03 10:42:10 +01:00
mips Update copyright years. 2022-01-03 10:42:10 +01:00
mmix Update copyright years. 2022-01-03 10:42:10 +01:00
moxie Update copyright years. 2022-01-03 10:42:10 +01:00
msp430 Update copyright years. 2022-01-03 10:42:10 +01:00
nds32 Update copyright years. 2022-01-03 10:42:10 +01:00
nios2 Update copyright years. 2022-01-03 10:42:10 +01:00
nvptx Update copyright years. 2022-01-03 10:42:10 +01:00
or1k Update copyright years. 2022-01-03 10:42:10 +01:00
pa Update copyright years. 2022-01-03 10:42:10 +01:00
pdp11
pru Update copyright years. 2022-01-03 10:42:10 +01:00
riscv Update copyright years. 2022-01-03 10:42:10 +01:00
rl78 Update copyright years. 2022-01-03 10:42:10 +01:00
rs6000 Darwin, libgcc: Fix build errors on powerpc-darwin8. 2022-03-04 16:44:54 +00:00
rx Update copyright years. 2022-01-03 10:42:10 +01:00
s390 Update copyright years. 2022-01-03 10:42:10 +01:00
score Update copyright years. 2022-01-03 10:42:10 +01:00
sh Update copyright years. 2022-01-03 10:42:10 +01:00
sol2 Update copyright years. 2022-01-03 10:42:10 +01:00
sparc Update copyright years. 2022-01-03 10:42:10 +01:00
stormy16 Update copyright years. 2022-01-03 10:42:10 +01:00
tilegx
tilepro Update copyright years. 2022-01-03 10:42:10 +01:00
v850 Update copyright years. 2022-01-03 10:42:10 +01:00
vax Update copyright years. 2022-01-03 10:42:10 +01:00
visium Update copyright years. 2022-01-03 10:42:10 +01:00
vms Update copyright years. 2022-01-03 10:42:10 +01:00
xtensa Update copyright years. 2022-01-03 10:42:10 +01:00
darwin10-unwind-find-enc-func.c Darwin, crts: Fix a build warning. 2021-11-05 20:48:05 +00:00
darwin-64.c Update copyright years. 2022-01-03 10:42:10 +01:00
darwin-crt3.c Update copyright years. 2022-01-03 10:42:10 +01:00
darwin-crt-tm.c Update copyright years. 2022-01-03 10:42:10 +01:00
darwin-unwind.ver libgcc, Darwin: Build a libgcc_s.1 for backwards compatibility. 2021-12-08 19:53:28 +00:00
gthr-lynx.h Update copyright years. 2022-01-03 10:42:10 +01:00
gthr-rtems.h Update copyright years. 2022-01-03 10:42:10 +01:00
gthr-vxworks-cond.c Update copyright years. 2022-01-03 10:42:10 +01:00
gthr-vxworks-thread.c Update copyright years. 2022-01-03 10:42:10 +01:00
gthr-vxworks-tls.c Update copyright years. 2022-01-03 10:42:10 +01:00
gthr-vxworks.c Update copyright years. 2022-01-03 10:42:10 +01:00
gthr-vxworks.h Update copyright years. 2022-01-03 10:42:10 +01:00
hardfp.c Update copyright years. 2022-01-03 10:42:10 +01:00
libgcc-glibc.ver Update copyright years. 2022-01-03 10:42:10 +01:00
libgcc-libsystem.ver Darwin: Rework handling for unwinder code in libgcc_s and specs [PR80556]. 2021-11-19 19:58:11 +00:00
no-sfp-machine.h
no-unwind.h
t-crtfm
t-crtstuff-pic
t-darwin libgcc, Darwin: Update darwin10 unwinder shim dependencies. 2021-12-10 23:15:15 +00:00
t-darwin-ehs Darwin, libgcc: Fix build errors on powerpc-darwin8. 2022-03-04 16:44:54 +00:00
t-dfprules
t-eh-dw2-dip
t-fdpbit
t-fixedpoint-gnu-prefix
t-fpbit
t-freebsd-thread
t-gnu-prefix
t-gthr-noweak
t-gthr-vxworks
t-gthr-vxworksae
t-hardfp Update copyright years. 2022-01-03 10:42:10 +01:00
t-hardfp-sfdf Update copyright years. 2022-01-03 10:42:10 +01:00
t-libgcc-pic
t-libunwind
t-libunwind-elf Update copyright years. 2022-01-03 10:42:10 +01:00
t-linux
t-openbsd-thread
t-rtems
t-slibgcc Update copyright years. 2022-01-03 10:42:10 +01:00
t-slibgcc-darwin libgcc, Darwin: Add missing build dependencies. 2021-12-17 10:12:53 +00:00
t-slibgcc-elf-ver
t-slibgcc-fuchsia Update copyright years. 2022-01-03 10:42:10 +01:00
t-slibgcc-gld
t-slibgcc-gld-nover
t-slibgcc-hpux
t-slibgcc-libgcc Update copyright years. 2022-01-03 10:42:10 +01:00
t-slibgcc-nolc-override
t-slibgcc-sld
t-slibgcc-vms libgcc: Honor LDFLAGS_FOR_TARGET when linking libgcc_s 2021-08-05 17:32:06 +02:00
t-softfp Update copyright years. 2022-01-03 10:42:10 +01:00
t-softfp-compat
t-softfp-excl
t-softfp-sfdf
t-softfp-sfdftf
t-softfp-tf
t-stack
t-tls
t-vxcrtstuff
t-vxcrtstuffS Tigthen libc_internal and crtstuff for VxWorks shared objects 2021-12-13 18:03:03 +00:00
t-vxworks Preserve cpu specific CRTSTUFF_T_CFLAGS on powerpc-vxworks7 2021-12-13 17:59:54 +00:00
t-vxworksae
unwind-dw2-fde-darwin.c Update copyright years. 2022-01-03 10:42:10 +01:00
vxcrtstuff.c Tigthen libc_internal and crtstuff for VxWorks shared objects 2021-12-13 18:03:03 +00:00