diff options
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]) |