• Roland Scheidegger's avatar
    h264: use one table instead of several for cabac functions · 14e9ffc1
    Roland Scheidegger authored
    The reason is this is easier for PIC code (in particular on darwin...).
    Keep the old names as pointers (static in cabac_functions.h so gcc
    knows these are just immediate offsets) so the c code can nicely stay the same
    (alternatively could use offsets directly in the functions needing the
    tables). This should produce the same code as before with non-pic and better
    code (confirmed) with pic.
    
    The assembly uses the new table but still won't work for PIC case.
    Signed-off-by: 's avatarRonald S. Bultje <rsbultje@gmail.com>
    14e9ffc1
cabac.c 8.73 KB