[PATCH 2/2] aarch64: Use __glibc_likely macro in comment in dl-tlsdesc.S

Yury Khrustalev yury.khrustalev@arm.com
Mon Aug 10 14:19:53 GMT 2026


This is to have uniform code style across all code in sysdeps/aarch64.
---
 sysdeps/aarch64/dl-tlsdesc.S | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/sysdeps/aarch64/dl-tlsdesc.S b/sysdeps/aarch64/dl-tlsdesc.S
index cdde3cbf57..1ae4b557c2 100644
--- a/sysdeps/aarch64/dl-tlsdesc.S
+++ b/sysdeps/aarch64/dl-tlsdesc.S
@@ -123,10 +123,9 @@ _dl_tlsdesc_undefweak:
 	   {
 	     struct tlsdesc_dynamic_arg *td = tdp->arg;
 	     dtv_t *dtv = *(dtv_t **)((char *)__thread_pointer() + TCBHEAD_DTV);
-	     if (__builtin_expect (td->gen_count <= dtv[0].counter
+	     if (__glibc_likely (td->gen_count <= dtv[0].counter
 		&& (dtv[td->tlsinfo.ti_module].pointer.val
-		    != TLS_DTV_UNALLOCATED),
-		1))
+		    != TLS_DTV_UNALLOCATED)))
 	       return dtv[td->tlsinfo.ti_module].pointer.val
 		+ td->tlsinfo.ti_offset
 		- __thread_pointer();
-- 
2.47.3



More information about the Libc-alpha mailing list