From 3fa02569b6af28de0cefd383f4b1cdf8d7d9f6b3 Mon Sep 17 00:00:00 2001 From: Keuin Date: Mon, 11 Apr 2022 10:11:46 +0800 Subject: Add specialized eq for vec3l equality. --- vec.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vec.h b/vec.h index cd2a039..8b5f489 100644 --- a/vec.h +++ b/vec.h @@ -8,6 +8,10 @@ static inline bool eq(int a, int b) { return a == b; } +static inline bool eq(long long a, long long b) { + return a == b; +} + static inline bool eq(double a, double b) { // FIXME broken on large values // https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ -- cgit v1.2.3