Commit b88f9d5c authored by Martin Reinecke's avatar Martin Reinecke
Browse files

cosmetics

parent 8f4dbdea
......@@ -27,10 +27,17 @@
#include <cstdlib>
#include <cmath>
#include <vector>
#include <array>
#include "pocketfft_hdronly.h"
#include <array>
#if defined(__GNUC__)
#define NOINLINE __attribute__((noinline))
#define ALIGNED(align) __attribute__ ((aligned(align)))
#else
#define NOINLINE
#define ALIGNED(align)
#endif
namespace gridder {
......@@ -636,7 +643,7 @@ template<typename T, typename T2=complex<T>> class Helper
public:
const T2 *p0r;
T2 *p0w;
T kernel[64] __attribute__ ((aligned(64)));
T kernel[64] ALIGNED(64);
Helper(const GridderConfig<T> &gconf_, const T2 *grid_r_, T2 *grid_w_, T w0_=-1, T dw_=-1)
: gconf(gconf_), nu(gconf.Nu()), nv(gconf.Nv()), nsafe(gconf.Nsafe()),
......@@ -829,7 +836,7 @@ template<typename T, typename Serv> void grid2x_c
myassert(grid.contiguous(), "grid is not contiguous");
size_t supp = gconf.Supp();
size_t nthreads = gconf.Nthreads();
bool do_w_gridding=dw>=0;
bool do_w_gridding=dw>0;
// Loop over sampling points
#pragma omp parallel num_threads(nthreads)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment