News for hackers. Stuff that matters.
Re:Std: Clamp generates less efficient assembly than std:min... by xigoi on Tuesday January 16, 2024 @01:15PM (#39016569)
They are talking about -ffast-math, not -Ofast.
Re:Std: Clamp generates less efficient assembly than std:min... by gumby on Tuesday January 16, 2024 @02:36PM (#39017925)
From the gcc manual:

-Ofast

Disregard strict standards compliance. -Ofast enables all -O3 optimizations. It also enables optimizations that are not valid for all standard-compliant programs. It turns on -ffast-math, -fallow-store-data-races and the Fortran-specific -fstack-arrays, unless -fmax-stack-var-size is specified, and -fno-protect-parens. It turns off -fsemantic-interposition.