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 | add sp, sp, #640 | 618 | add sp, sp, #640 |
| 619 | 619 | ||
| 620 | mov x30, x15 | 620 | ret x15 |
| 621 | ret | ||
| 622 | endfunc | 621 | endfunc |
| 623 | .endm | 622 | .endm |
| 624 | 623 | ||
| @@ -814,8 +813,7 @@ function ff_hevc_idct_32x32_\bitdepth\()_neon, export=1 · 189 unmodified lines | |||
| 814 | .endr | 813 | .endr |
| 815 | 814 | ||
| 816 | add sp, sp, #2432 | 815 | add sp, sp, #2432 |
| 817 | mov x30, x15 | 816 | ret x15 |
| 818 | ret | ||
| 819 | endfunc | 817 | endfunc |
| 820 | .endm | 818 | .endm |
| 821 | 819 | ||