aboutsummaryrefslogtreecommitdiffstats
path: root/src/lisp.h
diff options
context:
space:
mode:
authorPaul Eggert2024-02-13 09:54:51 -0800
committerPaul Eggert2024-02-13 11:20:32 -0800
commitefdcd7b8f78ef22c0213ea770a552fb69b789381 (patch)
treed54686c1b24d3187b744fd9bf87d3e96557bdd46 /src/lisp.h
parent08c1863257469b4cb85e97a276ba635d44b22666 (diff)
downloademacs-efdcd7b8f78ef22c0213ea770a552fb69b789381.tar.gz
emacs-efdcd7b8f78ef22c0213ea770a552fb69b789381.zip
Remove BASE2_EQ
* src/lisp.h (lisp_h_BASE2_EQ, BASE2_EQ): Remove. All uses removed. BASE2_EQ was present only for minor optimization and with current gcc -O2, BASE2_EQ does not affect performance, so it’s not worth the hassle.
Diffstat (limited to 'src/lisp.h')
-rw-r--r--src/lisp.h18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/lisp.h b/src/lisp.h
index b609bef990c..0b676a027eb 100644
--- a/src/lisp.h
+++ b/src/lisp.h
@@ -384,14 +384,11 @@ typedef EMACS_INT Lisp_Word;
384 ((ok) ? (void) 0 : wrong_type_argument (predicate, x)) 384 ((ok) ? (void) 0 : wrong_type_argument (predicate, x))
385#define lisp_h_CONSP(x) TAGGEDP (x, Lisp_Cons) 385#define lisp_h_CONSP(x) TAGGEDP (x, Lisp_Cons)
386#define lisp_h_BASE_EQ(x, y) (XLI (x) == XLI (y)) 386#define lisp_h_BASE_EQ(x, y) (XLI (x) == XLI (y))
387#define lisp_h_BASE2_EQ(x, y) \ 387#define lisp_h_EQ(x, y) \
388 BASE_EQ ((symbols_with_pos_enabled && SYMBOL_WITH_POS_P (x) \ 388 BASE_EQ ((symbols_with_pos_enabled && SYMBOL_WITH_POS_P (x) \
389 ? XSYMBOL_WITH_POS (x)->sym : (x)), \ 389 ? XSYMBOL_WITH_POS (x)->sym : (x)), \
390 y) 390 (symbols_with_pos_enabled && SYMBOL_WITH_POS_P (y) \
391#define lisp_h_EQ(x, y) \ 391 ? XSYMBOL_WITH_POS (y)->sym : (y)))
392 BASE2_EQ (x, \
393 (symbols_with_pos_enabled && SYMBOL_WITH_POS_P (y) \
394 ? XSYMBOL_WITH_POS (y)->sym : (y)))
395 392
396#define lisp_h_FIXNUMP(x) \ 393#define lisp_h_FIXNUMP(x) \
397 (! (((unsigned) (XLI (x) >> (USE_LSB_TAG ? 0 : FIXNUM_BITS)) \ 394 (! (((unsigned) (XLI (x) >> (USE_LSB_TAG ? 0 : FIXNUM_BITS)) \
@@ -461,7 +458,6 @@ typedef EMACS_INT Lisp_Word;
461# define CHECK_TYPE(ok, predicate, x) lisp_h_CHECK_TYPE (ok, predicate, x) 458# define CHECK_TYPE(ok, predicate, x) lisp_h_CHECK_TYPE (ok, predicate, x)
462# define CONSP(x) lisp_h_CONSP (x) 459# define CONSP(x) lisp_h_CONSP (x)
463# define BASE_EQ(x, y) lisp_h_BASE_EQ (x, y) 460# define BASE_EQ(x, y) lisp_h_BASE_EQ (x, y)
464# define BASE2_EQ(x, y) lisp_h_BASE2_EQ (x, y)
465# define FLOATP(x) lisp_h_FLOATP (x) 461# define FLOATP(x) lisp_h_FLOATP (x)
466# define FIXNUMP(x) lisp_h_FIXNUMP (x) 462# define FIXNUMP(x) lisp_h_FIXNUMP (x)
467# define NILP(x) lisp_h_NILP (x) 463# define NILP(x) lisp_h_NILP (x)
@@ -1339,14 +1335,6 @@ INLINE bool
1339 return lisp_h_BASE_EQ (x, y); 1335 return lisp_h_BASE_EQ (x, y);
1340} 1336}
1341 1337
1342/* Return true if X and Y are the same object, reckoning X to be the
1343 same as a bare symbol Y if X is Y with position. */
1344INLINE bool
1345(BASE2_EQ) (Lisp_Object x, Lisp_Object y)
1346{
1347 return lisp_h_BASE2_EQ (x, y);
1348}
1349
1350/* Return true if X and Y are the same object, reckoning a symbol with 1338/* Return true if X and Y are the same object, reckoning a symbol with
1351 position as being the same as the bare symbol. */ 1339 position as being the same as the bare symbol. */
1352INLINE bool 1340INLINE bool