Getting a little closer to 128-bit indices

This commit is contained in:
Erica Fischer
2024-04-03 14:21:32 -07:00
parent 6c148a63f7
commit da94dbf9c4
3 changed files with 23 additions and 8 deletions
+2 -2
View File
@@ -150,7 +150,7 @@ void hilbert_d2xy(unsigned long long n, unsigned long long d, unsigned *x, unsig
}
}
unsigned long long encode_hilbert(unsigned int wx, unsigned int wy) {
index_t encode_hilbert(unsigned int wx, unsigned int wy) {
return hilbert_xy2d(1LL << UINT_BITS, wx, wy);
}
@@ -158,7 +158,7 @@ void decode_hilbert(index_t index, unsigned *wx, unsigned *wy) {
hilbert_d2xy(1LL << UINT_BITS, index, wx, wy);
}
unsigned long long encode_quadkey(unsigned int wx, unsigned int wy) {
index_t encode_quadkey(unsigned int wx, unsigned int wy) {
unsigned long long out = 0;
int i;