summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-10 17:14:55 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2024-03-15 12:51:15 +0100
commitc00cd007e842b522dc9fbd219e6d32fe9212465b (patch)
tree42709f94d29cbe913b68eb52fafbc6db933f1773 /tests
parent53a51e70f27b6af5b051b51de4b1e246cf6003c7 (diff)
configure: Remove av_restrict
All versions of MSVC that support C11 (namely >= v19.27) also support the restrict keyword, therefore av_restrict is no longer necessary since 75697836b1db3e0f0a3b7061be6be28d00c675a0. Reviewed-by: Martin Storsjö <martin@martin.st> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/checkasm/fixed_dsp.c2
-rw-r--r--tests/checkasm/float_dsp.c4
-rw-r--r--tests/checkasm/pixblockdsp.c2
-rw-r--r--tests/checkasm/vorbisdsp.c4
4 files changed, 4 insertions, 8 deletions
diff --git a/tests/checkasm/fixed_dsp.c b/tests/checkasm/fixed_dsp.c
index 4e610a148e..382eb6c2bf 100644
--- a/tests/checkasm/fixed_dsp.c
+++ b/tests/checkasm/fixed_dsp.c
@@ -100,7 +100,7 @@ static void check_butterflies(const int *src0, const int *src1)
LOCAL_ALIGNED_16(int, new0, [BUF_SIZE]);
LOCAL_ALIGNED_16(int, new1, [BUF_SIZE]);
- declare_func(void, int *av_restrict src0, int *av_restrict src1, int len);
+ declare_func(void, int *restrict src0, int *restrict src1, int len);
memcpy(ref0, src0, BUF_SIZE * sizeof(*src0));
memcpy(ref1, src1, BUF_SIZE * sizeof(*src1));
diff --git a/tests/checkasm/float_dsp.c b/tests/checkasm/float_dsp.c
index 1437d8ee97..a025117b6b 100644
--- a/tests/checkasm/float_dsp.c
+++ b/tests/checkasm/float_dsp.c
@@ -16,8 +16,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "config.h"
-
#include <float.h>
#include <stdint.h>
@@ -236,7 +234,7 @@ static void test_butterflies_float(const float *src0, const float *src1)
LOCAL_ALIGNED_16(float, odst1, [LEN]);
int i;
- declare_func(void, float *av_restrict src0, float *av_restrict src1,
+ declare_func(void, float *restrict src0, float *restrict src1,
int len);
memcpy(cdst, src0, LEN * sizeof(*src0));
diff --git a/tests/checkasm/pixblockdsp.c b/tests/checkasm/pixblockdsp.c
index 3c8599db36..26a697a346 100644
--- a/tests/checkasm/pixblockdsp.c
+++ b/tests/checkasm/pixblockdsp.c
@@ -65,7 +65,7 @@
#define check_diff_pixels(type, aligned) \
do { \
int i; \
- declare_func(void, int16_t *av_restrict block, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride); \
+ declare_func(void, int16_t *restrict block, const uint8_t *s1, const uint8_t *s2, ptrdiff_t stride); \
\
for (i = 0; i < BUF_UNITS; i++) { \
int src_offset = i * 64 * sizeof(type) + (aligned ? 8 : 1) * i; \
diff --git a/tests/checkasm/vorbisdsp.c b/tests/checkasm/vorbisdsp.c
index b055742519..5a1cfbdf37 100644
--- a/tests/checkasm/vorbisdsp.c
+++ b/tests/checkasm/vorbisdsp.c
@@ -16,8 +16,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "config.h"
-
#include <float.h>
#include "libavutil/mem_internal.h"
@@ -48,7 +46,7 @@ static void test_inverse_coupling(void)
LOCAL_ALIGNED_16(float, cdst1, [LEN]);
LOCAL_ALIGNED_16(float, odst1, [LEN]);
- declare_func(void, float *av_restrict mag, float *av_restrict ang,
+ declare_func(void, float *restrict mag, float *restrict ang,
ptrdiff_t blocksize);
randomize_buffer(src0);