https://gcc.gnu.org/g:bd2fde5d72893f4c1310b08a035b30ff0d8a4500

commit r17-5651-gbd2fde5d72893f4c1310b08a035b30ff0d8a4500
Author: Wilco Dijkstra <[email protected]>
Date:   Tue Oct 27 17:49:50 2026 +0000

    libcpp: Use ULL for 64-bit immediates
    
    Use ULL for 64-bit immediates for clarity (promotion rules
    work even if unsigned long is 32 bits).
    
    libcpp/ChangeLog:
    
            * lex.cc (search_line_neon): Use ULL instead of UL.
            (search_line_fast): Likewise.

Diff:
---
 libcpp/lex.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libcpp/lex.cc b/libcpp/lex.cc
index 37c7584c32b5..52ca889987ee 100644
--- a/libcpp/lex.cc
+++ b/libcpp/lex.cc
@@ -692,7 +692,7 @@ search_line_neon (const uchar *s, const uchar *end 
ATTRIBUTE_UNUSED)
       t = (uint16x8_t) vceqq_u8 (vqtbl1q_u8 (tab, vandq_u8 (d, m)), d);
       mask = vget_lane_u64 ((uint64x1_t)vaddhn_u16 (t, t), 0);
       if (mask != 0)
-       return s + (__builtin_ctzll (mask & 0x1111111111111111UL) >> 2);
+       return s + (__builtin_ctzll (mask & 0x1111111111111111ULL) >> 2);
       s += 16;
       d = vld1q_u8 (s);
     }
@@ -816,7 +816,7 @@ search_line_fast (const uchar *s, const uchar *end 
ATTRIBUTE_UNUSED)
   uint64_t mask;
   m = vdupq_n_u8 (0x7);
   /* Equivalent: uint8_t tab[8] = { 1, 0, '\n', 0, '\\', '\r', 0, '?' }.  */
-  tab = (uint8x8_t) vdup_n_u64 (0x3f000d5c000a0001UL);
+  tab = (uint8x8_t) vdup_n_u64 (0x3f000d5c000a0001ULL);
 
   while (1)
     {

Reply via email to