aboutsummaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h6
1 files changed, 6 insertions, 0 deletions
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 <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])