Advertisement
Guest User

Untitled

a guest
Nov 21st, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. C code :
  2. DECLARE_ALIGNED(16, const int8_t, ff_hevc_epel_filters[7][16]) = {things}
  3.  
  4. "my" is an argument which takes a value between:
  5. void ff_hevc_put_hevc_epel_v_8_sse(things, int my, things)
  6. const int8_t *filter = ff_hevc_epel_filters[my - 1];
  7. int8_t filter_0 = filter[0];
  8. things...
  9.  
  10.  
  11. asm : (my is on r7. r6 is unused)
  12. does not crash :
  13. mov r6,0
  14. mov r6b,r7b
  15. sub r6,1
  16. shl r6,4
  17. lea r6,[hevc_epel_filters+r6]
  18. movq m1,[r6] ;filter0
  19.  
  20. seg fault :
  21. sub myq,1
  22. shl myq,4
  23. lea r6,[hevc_epel_filters+myq]
  24. movq m1,[r6] ;filter0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement