Rcpp Version 0.9.10
RangeIndexer.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  internal::RangeIndexer< RTYPE, VECTOR >

Namespaces

namespace  internal

Defines

#define UNROLL_LOOP(OP)

Define Documentation

#define UNROLL_LOOP (   OP)
Value:
typedef typename ::Rcpp::traits::Extractor<RTYPE,NA,T>::type EXT ; \
    const EXT& input( x.get_ref() ) ;                   \
    int __trip_count = (size_) >> 2;                 \
    int i=0 ;                                        \
    for ( ; __trip_count > 0 ; --__trip_count) {     \
        start[i] OP input[i] ; i++ ;                 \
        start[i] OP input[i] ; i++ ;                 \
        start[i] OP input[i] ; i++ ;                 \
        start[i] OP input[i] ; i++ ;                 \
    }                                                \
    switch (size_ - i){                              \
      case 3:                                        \
          start[i] OP input[i] ; i++ ;               \
      case 2:                                        \
          start[i] OP input[i] ; i++ ;               \
      case 1:                                        \
          start[i] OP input[i] ; i++ ;               \
      case 0:                                        \
      default:                                       \
          return *this ;                             \
    }

Definition at line 25 of file RangeIndexer.h.

Referenced by internal::RangeIndexer< RTYPE, VECTOR >::operator*=(), internal::RangeIndexer< RTYPE, VECTOR >::operator+=(), internal::RangeIndexer< RTYPE, VECTOR >::operator-=(), internal::RangeIndexer< RTYPE, VECTOR >::operator/=(), and internal::RangeIndexer< RTYPE, VECTOR >::operator=().

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines