This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Optimizing hypot()


On Thu, Jul 24, 2003 at 12:27:50AM +0200, Richard Guenther wrote:
>         cvtsi2ss        %eax, %xmm1     # tmp64,
>         movss   %xmm1, -4(%ebp) #,
> 
> Note the bogous temporary xmm1 use at the end.

Note that this is an int->float conversion.

By not including math.h, you lose the prototype for the
function, which means that by C rules the function is
assumed to return int.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]