ret can be given an argument instead. This is also consistent with how other assembler code in FFmpeg does it.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -617,8 +617,7 @@ function ff_hevc_idct_16x16_\bitdepth\()_neon, export=1 · 616 unmodified lines | ||
| 617 | 617 | |
| 618 | 618 | add sp, sp, #640 |
| 619 | 619 | |
| 620 | − mov x30, x15 | |
| 621 | − ret | |
| 620 | + ret x15 | |
| 622 | 621 | endfunc |
| 623 | 622 | .endm |
| 624 | 623 | |
| @@ -814,8 +813,7 @@ function ff_hevc_idct_32x32_\bitdepth\()_neon, export=1 · 189 unmodified lines | ||
| 814 | 813 | .endr |
| 815 | 814 | |
| 816 | 815 | add sp, sp, #2432 |
| 817 | − mov x30, x15 | |
| 818 | − ret | |
| 816 | + ret x15 | |
| 819 | 817 | endfunc |
| 820 | 818 | .endm |
| 821 | 819 | |