• Re: constexpr is really very smart!

    From James Kuyper@jameskuyper@alumni.caltech.edu to comp.lang.c on Sat Dec 21 17:37:52 2024
    From Newsgroup: comp.lang.c

    On 12/21/24 17:14, Michael S wrote:
    On Fri, 20 Dec 2024 14:31:54 -0800
    Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:


    Thank you for that. Sadly I am not able to run it because my
    test environment is lacking _rdtsc(), and I haven't been able
    to find out how to install it.


    Any x86-64 Linux should have _rdtsc() as inline function (or built-in) defined in x86intrin.h. No installation required.

    On my x86-64 Linux system, that header (indirectly) declares __rdtsc(),
    but not _rdtsc.

    --- Synchronet 3.20a-Linux NewsLink 1.114