diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-02 01:18:08 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-08-05 02:59:58 +0200 |
commit | 2c8dc7e953e532752500e8145aa1ceee908bda2f (patch) | |
tree | 0bd56586ad3e1435c90983e8731e5845d01bff4b /libavutil | |
parent | b3bbbb14d0685c8c1fbcf8455e59c7f444290c7c (diff) |
avcodec/loongarch/h264chroma, vc1dsp_lasx: Add wrapper for __lasx_xvldx
__lasx_xvldx does not accept a pointer to const (in fact,
no function in lasxintrin.h does so), although it is not allowed
to modify the pointed-to buffer. Therefore this commit adds a wrapper
for it in order to constify the H264Chroma API in a later commit.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/loongarch/loongson_intrinsics.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavutil/loongarch/loongson_intrinsics.h b/libavutil/loongarch/loongson_intrinsics.h index e7911d3ebc..6425551255 100644 --- a/libavutil/loongarch/loongson_intrinsics.h +++ b/libavutil/loongarch/loongson_intrinsics.h @@ -721,6 +721,11 @@ static inline __m128i __lsx_vclip255_w(__m128i _in) { #ifdef __loongarch_asx #include <lasxintrin.h> + +/* __lasx_xvldx() in lasxintrin.h does not accept a const void*; + * remove the following once it does. */ +#define LASX_XVLDX(ptr, stride) __lasx_xvldx((void*)ptr, stride) + /* * ============================================================================= * Description : Dot product of byte vector elements |