shithub: libvpx

Download patch

ref: b43c27ab6eccc1fff2de4e0dde25c0f495961439
parent: 4bfde1071e98ddc9668e09d432a81fce11d950c2
parent: e1f55e0441330c4ab0dc3cbb1bdc46e7816d3fa2
author: James Zern <[email protected]>
date: Thu Dec 4 11:08:08 EST 2014

Merge "vp9_reader: reorder struct members"

--- a/vp9/decoder/vp9_reader.h
+++ b/vp9/decoder/vp9_reader.h
@@ -30,14 +30,15 @@
 #define BD_VALUE_SIZE ((int)sizeof(BD_VALUE) * CHAR_BIT)
 
 typedef struct {
-  const uint8_t *buffer_end;
-  const uint8_t *buffer;
-  uint8_t clear_buffer[sizeof(BD_VALUE) + 1];
+  // Be careful when reordering this struct, it may impact the cache negatively.
   BD_VALUE value;
-  int count;
   unsigned int range;
+  int count;
+  const uint8_t *buffer_end;
+  const uint8_t *buffer;
   vpx_decrypt_cb decrypt_cb;
   void *decrypt_state;
+  uint8_t clear_buffer[sizeof(BD_VALUE) + 1];
 } vp9_reader;
 
 int vp9_reader_init(vp9_reader *r,