Is RDTSC pure?

IchorDev zxinsworld at gmail.com
Fri Sep 12 15:37:15 UTC 2025


On Friday, 12 September 2025 at 14:48:43 UTC, Kagamin wrote:
> malloc is weakly pure, because it returns mutable pointer. The 
> difference is when you call it from strongly pure function, 
> then it doesn't matter, how many times malloc was called.

And if the compiler tries to memoise it?


More information about the Digitalmars-d-learn mailing list