Re: [eigen] NEON remaining failing tests

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]


2010/3/4 Konstantinos Margaritis <markos@xxxxxxxx>:
> On Thursday 04 March 2010 15:43:21 Benoit Jacob wrote:
>> Hi,
>>
>> Some comments on some of these.
>>
>> if some platforms can't vectorize integer division, we should provide
>> a way for them to say it and use a scalar path.
>>
>> It's pretty simple actually. integer division is going to be
>> implemented somewhere as a functor in Functors.h. It's probably called
>> ei_scalar_div_op or ei_scalar_quotient_op... there, at the place where
>> we say that it has packet access, you just have to add a #ifndef
>> ARM_NEON... same for AltiVec by the way.
>
> and SSE, right now no SIMD engine provides a way to do integer division.

OK, fixed. For reference:


diff -r 8a8f4e9e04bf -r 290fe15bd653 Eigen/src/Core/Functors.h
--- a/Eigen/src/Core/Functors.h Wed Mar 03 12:15:34 2010 -0600
+++ b/Eigen/src/Core/Functors.h Thu Mar 04 09:03:06 2010 -0500
@@ -179,7 +179,7 @@
  enum {
    Cost = 2 * NumTraits<Scalar>::MulCost,
    PacketAccess = ei_packet_traits<Scalar>::size>1
-                  #if (defined EIGEN_VECTORIZE_SSE)
+                  #if (defined EIGEN_VECTORIZE)
                  && NumTraits<Scalar>::HasFloatingPoint
                  #endif

Benoit



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/