diff options
author | Keuin <[email protected]> | 2022-04-11 10:11:46 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-04-11 10:24:22 +0800 |
commit | 3fa02569b6af28de0cefd383f4b1cdf8d7d9f6b3 (patch) | |
tree | b5b35aac82dd68761fdaabd8754241bd0ae3ac6c | |
parent | 90abe3287ba06f47447d8b4bac8958a4b1223140 (diff) |
Add specialized eq for vec3l equality.
-rw-r--r-- | vec.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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/ |