diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-03-11 20:00:45 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-08-28 10:18:38 +0200 |
commit | 95867280ab72ce6ade22f2cf7fcbc5b47b6cc95d (patch) | |
tree | 60c555a283b8d31d95d6e4583539cb7f4b7705dc /internal.h | |
parent | a10a89ae75b6215349aebc9257c56d2f79597f6e (diff) |
solve: export aligned coefficients
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -18,12 +18,17 @@ #ifndef BRILL_DATA_INTERNAL_H #define BRILL_DATA_INTERNAL_H +#include <stddef.h> + #include "brill_data.h" #define MAX(x, y) ((x) > (y) ? (x) : (y)) #define SQR(x) ((x) * (x)) #define ARRAY_ELEMS(x) (sizeof(x) / sizeof(x[0])) +#define ALIGN(x, a) (((x)+(a)-1)&~((a)-1)) + +#define REQ_ALIGNMENT(x) (32 / sizeof(x)) /* * small number to avoid r=0 singularities @@ -62,6 +67,7 @@ typedef struct BDPriv { int nb_coeffs[2]; double *coeffs; + ptrdiff_t coeffs_stride; } BDPriv; #define NB_COEFFS(s) (s->nb_coeffs[0] * s->nb_coeffs[1]) |