Rcpp Version 1.0.9
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  Rcpp::internal::RangeIndexer< RTYPE, NA, VECTOR >
 

Namespaces

 Rcpp
 Rcpp API.
 
 Rcpp::internal
 internal implementation details
 

Macros

#define UNROLL_LOOP(OP)
 

Macro Definition Documentation

◆ UNROLL_LOOP

#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.