mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-23 07:29:19 +02:00
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>
18 lines
510 B
Diff
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);
|