0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::ctx: Condition rdtsc linkage based on x86intrin availability.

This commit is contained in:
Jason Volk 2018-11-14 18:10:19 -08:00
parent 28115730de
commit 46690f433c

View file

@ -1369,11 +1369,24 @@ ircd::ctx::prof::check_stack()
}
}
#ifdef HAVE_X86INTRIN_H
ulong
ircd::ctx::prof::rdtsc()
{
return __rdtsc();
}
#else
ulong
ircd::ctx::prof::rdtsc()
{
static_assert
(
0, "TODO: Implement fallback here"
);
return 0;
}
#endif
///////////////////////////////////////////////////////////////////////////////
//