News for hackers. Stuff that matters.
Re:Maximal Min() and Max() by wood_spirit on Thursday August 08, 2024 @12:17PM (#41193161)
Could not the main compilers get involved and add builtins so an ifdef makes the common path on the main compilers like gcc use builtins and the slowdown only hurts those using the less mainstream compilers? If it takes off the other compilers would quickly add the feature.
Re:Maximal Min() and Max() by sapiogram on Thursday August 08, 2024 @01:13PM (#41193873)
What you're suggesting is basically a worse version of adding built-in min() and max() to the C spec. Which, to be fair, would be quite nice, but I guess the working group didn't want it in the standard.
Re:Maximal Min() and Max() by nullc on Friday August 09, 2024 @02:47AM (#41199356)
Adding a compiler specific builtin is one path for things to get into the language.