SUNphi  1.0
LoopUnroll.hpp File Reference

Unroll iteratively a loop. More...

Go to the source code of this file.

Functions

template<int min, int max, typename F , typename... Args>
 SUNphi::__attribute__ ((always_inline)) inline void loopUnroll(F f
 
 SUNphi::f (cur, forw< Args >(args)...)
 
if SUNphi::constexpr (next< max) loopUnroll< next
 
if SUNphi::Args (f, forw< Args >(args)...)
 

Variables

Args && SUNphi::args
 < Function to cal More...
 
constexpr int SUNphi::next
 Next value. More...
 
if SUNphi::max
 
if SUNphi::F
 

Detailed Description

Unroll iteratively a loop.

Definition in file LoopUnroll.hpp.

Function Documentation

template<int min, int max, typename F , typename... Args>
SUNphi::__attribute__ ( (always_inline)  )

Unroll a loop in the range [min,max)

The called function must take as a first argument the iteration

Variable Documentation

Args&& SUNphi::args
Initial value:
{
constexpr int cur=
min

< Function to cal

< Arguments to pass

Definition at line 22 of file LoopUnroll.hpp.

constexpr int SUNphi::next
Initial value:
=
cur+1

Next value.

Definition at line 28 of file LoopUnroll.hpp.