From 95867280ab72ce6ade22f2cf7fcbc5b47b6cc95d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 11 Mar 2016 20:00:45 +0100 Subject: solve: export aligned coefficients --- internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index e0cbf60..19e6d7f 100644 --- a/internal.h +++ b/internal.h @@ -18,12 +18,17 @@ #ifndef BRILL_DATA_INTERNAL_H #define BRILL_DATA_INTERNAL_H +#include + #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]) -- cgit v1.2.3