• Martin Storsjö's avatar
    intreadwrite: Use the __unaligned keyword on MSVC for ARM and x86_64 · f79d8474
    Martin Storsjö authored
    AV_WN64 is meant for unaligned data, but the existing av_alias* unions
    (without a definition for the av_alias attribute - we don't have one
    for MSVC) indicate to the compiler that they would have sufficient
    alignment for normal access, i.e. the compiler is free to assume
    8 byte alignment.
    
    On ARM, this makes sure that AV_WN64 (or two consecutive AV_WN32) is
    done with two str instructions instead of one strd.
    Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
    f79d8474
intreadwrite.h 15.6 KB