mariadb/cmake/os
Marko Mäkelä 5e929ee8a0 MDEV-19845: Define my_timer_cycles() inline
On clang, use __builtin_readcyclecounter() when available.
Hinted by Sergey Vojtovich. (This may lead to runtime failure
on ARM systems. The hardware should be available on ARMv8 (AArch64),
but access to it may require special privileges.)

We remove support for the proprietary Sun Microsystems compiler,
and rely on clang or the __GNUC__ assembler syntax instead.

For now, we retain support for IA-64 (Itanium) and 32-bit SPARC,
even though those platforms are likely no longer widely used.

We remove support for clock_gettime(CLOCK_SGI_CYCLE),
because Silicon Graphics ceased supporting IRIX in December 2013.
This was the only cycle timer interface available for MIPS.

On PowerPC, we rely on the GCC 4.8 __builtin_ppc_get_timebase()
(or clang __builtin_readcyclecounter()), which should be equivalent
to the old assembler code on both 64-bit and 32-bit targets.
2019-06-28 19:19:31 +03:00
..
AIX.cmake Update FSF Address 2019-05-11 21:29:06 +03:00
Cygwin.cmake Update FSF Address 2019-05-11 21:29:06 +03:00
Darwin.cmake Update FSF Address 2019-05-11 21:29:06 +03:00
FreeBSD.cmake Update FSF Address 2019-05-11 21:29:06 +03:00
GNU.cmake Add GNU/Hurd cmake configuration 2019-05-21 17:34:48 +04:00
HP-UX.cmake Update FSF Address 2019-05-11 21:29:06 +03:00
Linux.cmake Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
OS400.cmake Update FSF Address 2019-05-11 21:29:06 +03:00
SunOS.cmake MDEV-19845: Define my_timer_cycles() inline 2019-06-28 19:19:31 +03:00
Windows.cmake Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
WindowsCache.cmake MDEV-19845: Define my_timer_cycles() inline 2019-06-28 19:19:31 +03:00