gentoo-ebuilds/sci-astronomy/scamp/files/scamp-2.10.0-spread_bits64.patch
Mario Haustein ea02b0311a
sci-astronomy/scamp: add 2.10.0
Bug: https://bugs.gentoo.org/934756
Closes: https://bugs.gentoo.org/924303
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2024-06-29 17:18:18 +03:00

18 lines
510 B
Diff

--- a/src/chealpix.c
+++ b/src/chealpix.c
@@ -532,7 +532,6 @@
return (long) res;
}
-#ifndef __BMI2__
static int64_t spread_bits64(int v) {
return (int64_t) (utab[v & 0xff])
| ((int64_t) (utab[(v >> 8) & 0xff]) << 16)
@@ -548,6 +547,7 @@
| (ctab[(raw >> 40) & 0xff] << 20);
}
+#ifndef __BMI2__
static int64_t xyf2nest64(int64_t nside, int ix, int iy, int face_num) {
return (face_num * nside * nside) + spread_bits64(ix)
+ (spread_bits64(iy) << 1);