Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael S Newsgroups: comp.lang.c++ Subject: Re: constexpr is really very smart! Date: Sun, 22 Dec 2024 02:22:14 +0200 Organization: A noiseless patient Spider Lines: 24 Message-ID: <20241222022214.000033c3@yahoo.com> References: <20241216112808.00003f74@yahoo.com> <86jzbyghdw.fsf@linuxsc.com> <20241218013342.0000518a@yahoo.com> <867c7whol9.fsf@linuxsc.com> <20241218220006.00003f8e@yahoo.com> <86v7vgf3tb.fsf@linuxsc.com> <20241219234549.00001902@yahoo.com> <86r062f0kl.fsf@linuxsc.com> <20241222001456.00007e84@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Sun, 22 Dec 2024 01:22:19 +0100 (CET) Injection-Info: dont-email.me; posting-host="926dab9d4a3a2406bd5e1e36cf72f405"; logging-data="268969"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/sKK6bkb0DxyZH33vmiXP4iFcEmgi5Ahk=" Cancel-Lock: sha1:GJH1KYLEXI7IixHY4NG22FT9aow= X-Newsreader: Claws Mail 4.1.1 (GTK 3.24.34; x86_64-w64-mingw32) On Sat, 21 Dec 2024 17:55:20 -0500 James Kuyper wrote: > On 12/21/24 17:14, Michael S wrote: > > On Fri, 20 Dec 2024 14:31:54 -0800 > > Tim Rentsch 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. > > Thank you. I'd guess I knew it once, but because I don't run microbenchmark on Linux all that often, had forgotten.