diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-30 08:00:51 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-30 08:00:51 +0100 |
commit | d5ee59790ee8298b8599b0aa0fa21a98b972a44d (patch) | |
tree | 2cc4393cdcfae28879cee110e5975f6e6b798f91 /sci-astronomy/scamp/files/scamp-2.10.0-spread_bits64.patch | |
parent | d855918b46ba8714cf1320fe63b55fd0ed1748a6 (diff) |
gentoo auto-resync : 30:06:2024 - 08:00:50
Diffstat (limited to 'sci-astronomy/scamp/files/scamp-2.10.0-spread_bits64.patch')
-rw-r--r-- | sci-astronomy/scamp/files/scamp-2.10.0-spread_bits64.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sci-astronomy/scamp/files/scamp-2.10.0-spread_bits64.patch b/sci-astronomy/scamp/files/scamp-2.10.0-spread_bits64.patch new file mode 100644 index 000000000000..e126dc6e8c79 --- /dev/null +++ b/sci-astronomy/scamp/files/scamp-2.10.0-spread_bits64.patch @@ -0,0 +1,18 @@ +--- 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); |