Commit b9133bce authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avcodec/me_cmp: Mark ff_square_tab as hidden

ff_square_tab is always used with an offset; if this table
is marked as hidden, the compiler can infer that it and
therefore also ff_square_tab + 256 have a fixed offset
from the code. This allows to avoid performing "+ 256"
at runtime by baking it into the offset from the code to
the table.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
parent ebcaa242
......@@ -21,9 +21,11 @@
#include <stdint.h>
#include "libavutil/attributes_internal.h"
#include "avcodec.h"
extern const uint32_t ff_square_tab[512];
extern const uint32_t attribute_visibility_hidden ff_square_tab[512];
/* minimum alignment rules ;)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment