[Issue 4455] Taking the sqrt of an integer shouldn't require an explicit cast.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 13 14:25:20 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4455


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #1 from bearophile_hugs at eml.cc 2010-07-13 14:25:18 PDT ---
Partially unrelated: an efficient D compiler can desire to implement the sqrt
with SSE instructions like SQRTSS RSQRTSS SQRTPS and RSQRTPS, that have floats
or doubles in input or output. So I think a double sqrt(double) too can be
useful, to avoid the useless argument passing of 10-12-16 bytes (necessary for
an argument of type real) for the computation of sqrt on a double.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list