aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrea Corallo2025-09-18 00:03:42 +0200
committerAndrea Corallo2025-09-22 10:28:40 +0200
commite7380934d0a633ef54161cee0a0abe307364dacc (patch)
tree96b2c1ac3489ef00491be59ec886111bf4c75671 /src
parent020e2f5ddbbc2f380f694e1537aaa8405daf5829 (diff)
downloademacs-e7380934d0a633ef54161cee0a0abe307364dacc.tar.gz
emacs-e7380934d0a633ef54161cee0a0abe307364dacc.zip
* Make sure the compiler optimizes for symbols_with_pos_enabled 0 in EQ
* src/lisp.h (EQ): Make use '__builtin_expect'.
Diffstat (limited to 'src')
-rw-r--r--src/lisp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lisp.h b/src/lisp.h
index 88406aa0ce8..ecc20600dd0 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -1328,7 +1328,7 @@ EQ (Lisp_Object x, Lisp_Object y)
1328{ 1328{
1329 if (BASE_EQ (x, y)) 1329 if (BASE_EQ (x, y))
1330 return true; 1330 return true;
1331 else if (!symbols_with_pos_enabled) 1331 else if (!__builtin_expect (symbols_with_pos_enabled, false))
1332 return false; 1332 return false;
1333 else 1333 else
1334 return slow_eq (x, y); 1334 return slow_eq (x, y);