From cdf6024452fe7d74cb6d5bae4dbbedb48e7af886 Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Sat, 14 Jan 2023 16:03:21 -0800 Subject: [PATCH] Add compile-time constants for SMALLP values 0 and -1 --- inc/arith.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/arith.h b/inc/arith.h index 5e858ca..c2afb2d 100644 --- a/inc/arith.h +++ b/inc/arith.h @@ -22,6 +22,8 @@ #define MAX_FIXP 2147483647 /* == 0x7FFFFFFF */ #define MIN_FIXP (-2147483648) /* == 0x80000000 */ +#define SMALLP_ZERO ((LispPTR)S_POSITIVE) +#define SMALLP_MINUSONE ((LispPTR)(S_NEGATIVE | 0xFFFF)) /** * extract an integer value from a smallp */