summaryrefslogtreecommitdiff
path: root/vec.h
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-11 10:11:46 +0800
committerKeuin <[email protected]>2022-04-11 10:24:22 +0800
commit3fa02569b6af28de0cefd383f4b1cdf8d7d9f6b3 (patch)
treeb5b35aac82dd68761fdaabd8754241bd0ae3ac6c /vec.h
parent90abe3287ba06f47447d8b4bac8958a4b1223140 (diff)
Add specialized eq for vec3l equality.
Diffstat (limited to 'vec.h')
-rw-r--r--vec.h4
1 files changed, 4 insertions, 0 deletions
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/