diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-03 22:35:09 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-03 22:35:09 +0000 |
commit | f6bb2b5974c9dc15a4530842100d30fe1981b973 (patch) | |
tree | 62ef95efa54d91b6eafb6df99f330dc136f77f29 /Build/source/utils/asymptote/runmath.in | |
parent | 24dbc0b1802756862bedad6a4088f50aad68b51b (diff) |
asy 2.63 sources
git-svn-id: svn://tug.org/texlive/trunk@54034 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/runmath.in')
-rw-r--r-- | Build/source/utils/asymptote/runmath.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Build/source/utils/asymptote/runmath.in b/Build/source/utils/asymptote/runmath.in index c1068ce2175..a89f77c357b 100644 --- a/Build/source/utils/asymptote/runmath.in +++ b/Build/source/utils/asymptote/runmath.in @@ -132,6 +132,7 @@ unsigned long long bitreverse64(unsigned long long a) ((unsigned long long) BitReverseTable8[(a >> 56)]); } +#ifndef HAVE_POPCOUNT // https://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel #define T unsignedInt Int popcount(T a) @@ -142,6 +143,7 @@ Int popcount(T a) return (T)(a*((T)~(T)0/255)) >> (sizeof(T)-1)*CHAR_BIT; } #undef T +#endif // Return the factorial of a non-negative integer using a lookup table. Int factorial(Int n) |