aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/hdr_dynamic_metadata.h
diff options
context:
space:
mode:
authorRĂ©mi Denis-Courmont <remi@remlab.net>2023-04-20 20:53:56 +0300
committerLynne <dev@lynne.ee>2023-05-02 22:08:21 +0200
commit7dcb5e1ab09601e47447d54204c21bb2db720ef2 (patch)
tree19f6c7bc77a47a7568a29cdbc1a84e2501da7482 /libavutil/hdr_dynamic_metadata.h
parent129c7bf53fbe2be4f5483ecf6fc036ff9caf05cf (diff)
downloadffmpeg-7dcb5e1ab09601e47447d54204c21bb2db720ef2.tar.gz
riscv/bswap: use compiler builtins
av_bswapXX() are used in context that expect exact size types, notably variable arguments to av_log(). On Linux RV64, uint_fast32_t is an unsigned long, so the current inline assembler does not work properly. Since GCC and Clang gained their byte-swap built-ins before they supported RISC-V, we can simply defer to them. As an added bonus, the compiler can do instruction scheduling, which it couldn't with the Zbb inline assembler.
Diffstat (limited to 'libavutil/hdr_dynamic_metadata.h')
0 files changed, 0 insertions, 0 deletions