[vsipl++] [patch] long double FFT tests

Nathan (Jasper) Myers ncm at codesourcery.com
Thu Dec 22 16:49:57 UTC 2005


On Thu, Dec 22, 2005 at 06:30:12AM -0500, Jules Bergmann wrote:
> 
> 
> Nathan (Jasper) Myers wrote:
> >Per Jules's orders, tests for FFTs applied to long-double elements
> >where supported.  
> >
> 
> The request was to extend our tests so that they catch the SCALAR double 
> typo.  Do they do catch that now?

My last commit included

 #if defined(VSIP_IMPL_FFT_USE_FLOAT)
 # define SCALAR float
-#elif defined(VSIP_IMPL_FFT_USE_FLOAT)
+#elif defined(VSIP_IMPL_FFT_USE_DOUBLE)
 # define SCALAR double
+#elif defined(VSIP_IMPL_FFT_USE_LONG_DOUBLE)
+# define SCALAR long double
 #endif

which fixed the typo, and also enabled it to do complete transpose/rank
testing even if float and double support are not present.  I don't know
if that answers your question.

It took hardly any time to add full support for long double FFTs, and 
thorough testing.  Of course only FFTW3 enables that, so far.

Nathan Myers
ncm



More information about the vsipl++ mailing list