mirror of
https://github.com/mborgerding/kissfft.git
synced 2026-05-25 13:08:42 -04:00
loongarch: add lasx simd opt
This commit is contained in:
@@ -6,7 +6,7 @@ static void test1(void)
|
||||
int n[2] = {256,256};
|
||||
size_t nbytes = sizeof(kiss_fft_cpx)*n[0]*n[1];
|
||||
|
||||
#ifdef HAVE_LSX
|
||||
#if defined(HAVE_LSX) || defined(HAVE_LASX)
|
||||
kiss_fft_cpx * inbuf = NULL;
|
||||
kiss_fft_cpx * outbuf = NULL;
|
||||
if (posix_memalign((void**)&inbuf, 16, nbytes) ||
|
||||
@@ -23,7 +23,7 @@ static void test1(void)
|
||||
kiss_fftnd(cfg,inbuf,outbuf);
|
||||
kiss_fft_free(cfg);
|
||||
|
||||
#ifdef HAVE_LSX
|
||||
#if defined(HAVE_LSX) || defined(HAVE_LASX)
|
||||
free(inbuf);
|
||||
free(outbuf);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user