remove index_t definition

conflicts with prev code base.

Also std::optional doubles the size of the underlying type.
horrifying!  I don't want to have to give 16 bytes over for something
that could be embedded in the 8 bytes of the u64 directly.  I'm
thinking we could just use i64's instead, sacrificing that top bit to
indicate if the value is present or not.
This commit is contained in:
2025-11-27 01:12:35 +00:00
parent 7a4d158d2f
commit 6c2bc93874

View File

@@ -30,13 +30,6 @@ static_assert(sizeof(double) == 8, "f64 requires 8 byte doubles");
using f32 = float;
using f64 = double;
using index_t = i64;
inline bool index_has_value(index_t i)
{
return i >= 0;
}
inline u64 gcd(u64 a, u64 b)
{
if (a == b)