| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  *  Copyright (c) 2011 The WebM project authors. All Rights Reserved. | 2  *  Copyright (c) 2011 The WebM project authors. All Rights Reserved. | 
| 3  * | 3  * | 
| 4  *  Use of this source code is governed by a BSD-style license | 4  *  Use of this source code is governed by a BSD-style license | 
| 5  *  that can be found in the LICENSE file in the root of the source | 5  *  that can be found in the LICENSE file in the root of the source | 
| 6  *  tree. An additional intellectual property rights grant can be found | 6  *  tree. An additional intellectual property rights grant can be found | 
| 7  *  in the file PATENTS.  All contributing project authors may | 7  *  in the file PATENTS.  All contributing project authors may | 
| 8  *  be found in the AUTHORS file in the root of the source tree. | 8  *  be found in the AUTHORS file in the root of the source tree. | 
| 9  */ | 9  */ | 
| 10 | 10 | 
| 11 | 11 | 
| 12 #include "vpx_ports/config.h" | 12 #include "vpx_ports/asm_offsets.h" | 
| 13 #include <stddef.h> |  | 
| 14 |  | 
| 15 #include "onyxd_int.h" | 13 #include "onyxd_int.h" | 
| 16 | 14 | 
| 17 #define DEFINE(sym, val) int sym = val; | 15 BEGIN | 
| 18 |  | 
| 19 /* |  | 
| 20 #define BLANK() asm volatile("\n->" : : ) |  | 
| 21 */ |  | 
| 22 |  | 
| 23 /* |  | 
| 24  * int main(void) |  | 
| 25  * { |  | 
| 26  */ |  | 
| 27 | 16 | 
| 28 DEFINE(detok_scan,                              offsetof(DETOK, scan)); | 17 DEFINE(detok_scan,                              offsetof(DETOK, scan)); | 
| 29 DEFINE(detok_ptr_block2leftabove,               offsetof(DETOK, ptr_block2leftab
    ove)); | 18 DEFINE(detok_ptr_block2leftabove,               offsetof(DETOK, ptr_block2leftab
    ove)); | 
| 30 DEFINE(detok_coef_tree_ptr,                     offsetof(DETOK, vp8_coef_tree_pt
    r)); | 19 DEFINE(detok_coef_tree_ptr,                     offsetof(DETOK, vp8_coef_tree_pt
    r)); | 
| 31 DEFINE(detok_teb_base_ptr,                      offsetof(DETOK, teb_base_ptr)); |  | 
| 32 DEFINE(detok_norm_ptr,                          offsetof(DETOK, norm_ptr)); | 20 DEFINE(detok_norm_ptr,                          offsetof(DETOK, norm_ptr)); | 
| 33 DEFINE(detok_ptr_coef_bands_x,                  offsetof(DETOK, ptr_coef_bands_x
    )); | 21 DEFINE(detok_ptr_coef_bands_x,                  offsetof(DETOK, ptr_coef_bands_x
    )); | 
| 34 | 22 | 
| 35 DEFINE(detok_A,                                 offsetof(DETOK, A)); | 23 DEFINE(detok_A,                                 offsetof(DETOK, A)); | 
| 36 DEFINE(detok_L,                                 offsetof(DETOK, L)); | 24 DEFINE(detok_L,                                 offsetof(DETOK, L)); | 
| 37 | 25 | 
| 38 DEFINE(detok_qcoeff_start_ptr,                  offsetof(DETOK, qcoeff_start_ptr
    )); | 26 DEFINE(detok_qcoeff_start_ptr,                  offsetof(DETOK, qcoeff_start_ptr
    )); | 
| 39 DEFINE(detok_current_bc,                        offsetof(DETOK, current_bc)); | 27 DEFINE(detok_current_bc,                        offsetof(DETOK, current_bc)); | 
| 40 DEFINE(detok_coef_probs,                        offsetof(DETOK, coef_probs)); | 28 DEFINE(detok_coef_probs,                        offsetof(DETOK, coef_probs)); | 
| 41 DEFINE(detok_eob,                               offsetof(DETOK, eob)); | 29 DEFINE(detok_eob,                               offsetof(DETOK, eob)); | 
| 42 | 30 | 
| 43 DEFINE(bool_decoder_user_buffer_end,            offsetof(BOOL_DECODER, user_buff
    er_end)); | 31 DEFINE(bool_decoder_user_buffer_end,            offsetof(BOOL_DECODER, user_buff
    er_end)); | 
| 44 DEFINE(bool_decoder_user_buffer,                offsetof(BOOL_DECODER, user_buff
    er)); | 32 DEFINE(bool_decoder_user_buffer,                offsetof(BOOL_DECODER, user_buff
    er)); | 
| 45 DEFINE(bool_decoder_value,                      offsetof(BOOL_DECODER, value)); | 33 DEFINE(bool_decoder_value,                      offsetof(BOOL_DECODER, value)); | 
| 46 DEFINE(bool_decoder_count,                      offsetof(BOOL_DECODER, count)); | 34 DEFINE(bool_decoder_count,                      offsetof(BOOL_DECODER, count)); | 
| 47 DEFINE(bool_decoder_range,                      offsetof(BOOL_DECODER, range)); | 35 DEFINE(bool_decoder_range,                      offsetof(BOOL_DECODER, range)); | 
| 48 | 36 | 
| 49 DEFINE(tokenextrabits_min_val,                  offsetof(TOKENEXTRABITS, min_val
    )); | 37 END | 
| 50 DEFINE(tokenextrabits_length,                   offsetof(TOKENEXTRABITS, Length)
    ); |  | 
| 51 | 38 | 
| 52 //add asserts for any offset that is not supported by assembly code | 39 /* add asserts for any offset that is not supported by assembly code */ | 
| 53 //add asserts for any size that is not supported by assembly code | 40 /* add asserts for any size that is not supported by assembly code */ | 
| 54 /* |  | 
| 55  * return 0; |  | 
| 56  * } |  | 
| 57  */ |  | 
| OLD | NEW | 
|---|