2015-10-01 16:40:35 +00:00
|
|
|
#ifndef STRATEGIES_COMMON_H_
|
|
|
|
#define STRATEGIES_COMMON_H_
|
|
|
|
|
2015-12-17 11:42:57 +00:00
|
|
|
/**
|
|
|
|
* \ingroup Optimization
|
|
|
|
* \file
|
|
|
|
* Common tools strategies.
|
|
|
|
*/
|
|
|
|
|
2016-03-30 09:41:37 +00:00
|
|
|
#include "global.h" // IWYU pragma: keep
|
2016-01-22 13:07:49 +00:00
|
|
|
|
2015-10-01 16:40:35 +00:00
|
|
|
//Use with shuffle and permutation intrinsics.
|
|
|
|
//Parameters are indices to packed elements. Each must be 0, 1, 2 or 3.
|
|
|
|
#define KVZ_PERMUTE(a, b, c, d) ( (a << 0) | (b << 2) | (c << 4) | (d << 6) )
|
|
|
|
|
2015-12-17 11:42:57 +00:00
|
|
|
#endif //STRATEGIES_COMMON_H_
|