From f6bb2b5974c9dc15a4530842100d30fe1981b973 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 3 Mar 2020 22:35:09 +0000 Subject: asy 2.63 sources git-svn-id: svn://tug.org/texlive/trunk@54034 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/utils/asymptote/runmath.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Build/source/utils/asymptote/runmath.in') 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) -- cgit v1.2.3