summaryrefslogtreecommitdiffstats
path: root/byterun/int64_emul.h
diff options
context:
space:
mode:
Diffstat (limited to 'byterun/int64_emul.h')
-rw-r--r--byterun/int64_emul.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/byterun/int64_emul.h b/byterun/int64_emul.h
index 04e38656f..c0b7440ba 100644
--- a/byterun/int64_emul.h
+++ b/byterun/int64_emul.h
@@ -96,8 +96,9 @@ static int64 I64_mul(int64 x, int64 y)
}
#define I64_is_zero(x) (((x).l | (x).h) == 0)
-
#define I64_is_negative(x) ((int32) (x).h < 0)
+#define I64_is_min_int(x) ((x).l == 0 && (x).h = 0x80000000U)
+#define I64_is_minus_one(x) (((x).l & (x).h) == 0xFFFFFFFFU)
/* Bitwise operations */
static int64 I64_and(int64 x, int64 y)