netgen/libsrc
Stefan Brüns 85e8c09ff6 Fix GetTimeCounter for Aarch64 variants
Neither GCC nor Clang define an __arm64__ preprocessor macro, but use
__aarch64__ (MSVC uses _MARM_64). Add a "64" suffix to the define, i.e.
NETGEN_ARCH_ARM64 to make it more obvious in only refers to aarch64, and
to be in line with NETGEN_ARCH_AMD64.

Replace the (Clang specific) __builtin_readcyclecounter with inline
asm:
- The function return cycles (i.e. varies with CPU frequency), not time
- It may return 0, depending on the PMU settings
- It may cause an illegal instruction, in case it is not trapped by the
  kernel, e.g. on FreeBSD.

Reading the generic timer/counter CNTVCT_EL0 instead of PMCCNTR_EL0 avoids
these pitfalls. The inline asm works on GCC and Clang, instead of
Clang only for the builtin.
2021-03-03 17:30:33 +01:00
..
core Fix GetTimeCounter for Aarch64 variants 2021-03-03 17:30:33 +01:00
csg use relative tolerance in identifypoints 2020-12-18 15:58:51 +01:00
general move (refactored) SIMD headers from ngsolve into ngcore 2020-12-11 20:54:41 +01:00
geom2d Clean up multiple definitions of DLL_HEADER 2021-02-18 14:53:38 +01:00
gprim robust Polyhedron::VecInSolid option 2020-10-14 16:37:01 +02:00
include mesh bisection with onlyonce option. otherwise, tet-bisection performs three bisection steps to obtain h/2 2021-02-19 15:06:20 +01:00
interface mesh bisection with onlyonce option. otherwise, tet-bisection performs three bisection steps to obtain h/2 2021-02-19 15:06:20 +01:00
linalg Rename Array to NgArray 2019-07-09 10:39:16 +02:00
meshing Merge branch 'fix_swapimprove' into 'master' 2021-03-02 11:08:13 +00:00
occ Fix private linking of Python 2020-12-18 11:05:10 +01:00
stlgeom Clean up multiple definitions of DLL_HEADER 2021-02-18 14:53:38 +01:00
visualization manually cut view vector with clipping plane (more accurate, also working when visualizing clipping plane vectors) 2021-01-13 16:48:16 +01:00
CMakeLists.txt start ngcore, archive in there 2018-11-29 18:35:30 +01:00