test_cast< SrcPacket, TgtPacket > Struct Template Reference

Static Public Member Functions

static void run ()
 

Member Function Documentation

◆ run()

template<typename SrcPacket , typename TgtPacket >
static void test_cast< SrcPacket, TgtPacket >::run ( )
inlinestatic
213  {
214  typedef typename internal::unpacket_traits<SrcPacket>::type SrcScalar;
215  typedef typename internal::unpacket_traits<TgtPacket>::type TgtScalar;
216  typedef typename internal::type_casting_traits<SrcScalar, TgtScalar> TypeCastingTraits;
217  static const int SrcCoeffRatio = TypeCastingTraits::SrcCoeffRatio;
218  static const int TgtCoeffRatio = TypeCastingTraits::TgtCoeffRatio;
219  static const int SrcPacketSize = internal::unpacket_traits<SrcPacket>::size;
220  static const int TgtPacketSize = internal::unpacket_traits<TgtPacket>::size;
221  static const bool HasCast =
222  internal::unpacket_traits<SrcPacket>::vectorizable && internal::unpacket_traits<TgtPacket>::vectorizable &&
223  TypeCastingTraits::VectorizedCast && (SrcPacketSize * SrcCoeffRatio == TgtPacketSize * TgtCoeffRatio);
225  }
Scalar Scalar int size
Definition: benchVecAdd.cpp:17
void run(const string &dir_name, LinearSolver *linear_solver_pt, const unsigned nel_1d, bool mess_up_order)
Definition: two_d_poisson_compare_solvers.cc:317
Definition: ZVector/PacketMath.h:50

References run(), and size.

Referenced by test_cast_runner< SrcPacket, TgtScalar, TgtPacket, true, false >::run(), and test_cast_runner< SrcPacket, TgtScalar, TgtPacket, true, true >::run().


The documentation for this struct was generated from the following file: