FIAS . Impressum . Privacy

foreach_bit

Matthias Kretz [please enable javascript to see the address]
Wed Aug 15 08:13:40 CEST 2012


Hi,

On Tuesday 14 August 2012 22:01:07 Kulakov, Igor wrote:
> why Vc doesn't provide standard functions fabs(float ) (it has abs(float )
> instead) and sign(float )? As for me will be more convenient to have for
> both float_v and float all functions with same names.

fabs is the C way. In C++ you'd better avoid ::fabs and ::abs altogether and 
use std::abs instead. Vc provides Vc::abs and additionally (in master) 
overloads std::abs for the Vc types unless you define VC_NO_STD_FUNCTIONS.

I hope that answers your question?

Cheers,
	Matthias

-- 
Dipl.-Phys. Matthias Kretz
http://compeng.uni-frankfurt.de/?mkretz

SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc



More information about the Vc mailing list
FIAS . Impressum . Privacy