Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- C code :
- DECLARE_ALIGNED(16, const int8_t, ff_hevc_epel_filters[7][16]) = {things}
- "my" is an argument which takes a value between:
- void ff_hevc_put_hevc_epel_v_8_sse(things, int my, things)
- const int8_t *filter = ff_hevc_epel_filters[my - 1];
- int8_t filter_0 = filter[0];
- things...
- asm : (my is on r7. r6 is unused)
- does not crash :
- mov r6,0
- mov r6b,r7b
- sub r6,1
- shl r6,4
- lea r6,[hevc_epel_filters+r6]
- movq m1,[r6] ;filter0
- seg fault :
- sub myq,1
- shl myq,4
- lea r6,[hevc_epel_filters+myq]
- movq m1,[r6] ;filter0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement