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]

Re: Bug in complex::norm


Joern Rennecke wrote:

>>I don't recall if I changed norm's implementation, and if so I don't
>>recall why.  But we should have a less inefficient implementation.
>>
>
>Is norm required to be the euclidian norm?  I would think that it is
>faster to compute the maximum norm.
>

26.2.7p5 says that norm returns the squared magnitude of its argument, 
so it's required to be the euclidean norm.


-- 
Brane Čibej   <brane@xbc.nu>            http://www.xbc.nu/brane/




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