[Bug libc/34123] MATH: squaring: improve consistency! and speed of pow( x, 2 ),

newbie-02 at gmx dot de via Glibc-bugs <[email protected]> Wed, 17 Jun 2026 12:34:06 +0000
Newsgroups gmane.comp.lib.glibc.bugs
Message-ID <[email protected]/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=34123

--- Comment #11 from b. <newbie-02 at gmx dot de> ---
(In reply to Wilco from comment #10)

> I mean changing GCC to enable the optimization by default.

yeah, that's what I'm asking for, more to "use" x * x by default than to
"enable" it. 

> Not sure what you mean. Everyone who knows what they are doing are already
> writing x*x or enable fast-math.

yeah, however do we know how many people out there do _not_ know what they are
doing, In my experience quite a lot. And! squaring can come up as x² in code,
the programmer can adapt, or! as x^y with y being run-time defined to 2. IMHO
it's meaningful if any programming workbench automatically handles that
performant and consistent.  

You say gcc developers don't know what they are doing? I have to think about
that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.