Skip to content

Instantly share code, notes, and snippets.

@quink-black
Created September 13, 2021 04:35
Show Gist options
  • Save quink-black/83c206fb48d2ad4ae5dcbd2bac46292d to your computer and use it in GitHub Desktop.
Save quink-black/83c206fb48d2ad4ae5dcbd2bac46292d to your computer and use it in GitHub Desktop.
ffmpeg aarch64 asm
diff --git a/libavcodec/aarch64/videodsp.S b/libavcodec/aarch64/videodsp.S
index 24067cc2af..fe2da0658e 100644
--- a/libavcodec/aarch64/videodsp.S
+++ b/libavcodec/aarch64/videodsp.S
@@ -19,10 +19,11 @@
#include "libavutil/aarch64/asm.S"
function ff_prefetch_aarch64, export=1
+1:
subs w2, w2, #2
prfm pldl1strm, [x0]
prfm pldl1strm, [x0, x1]
add x0, x0, x1, lsl #1
- b.gt X(ff_prefetch_aarch64)
+ b.gt 1b
ret
endfunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment