/*****************************************************************************1* asm-offsets.c: check asm offsets for aarch642*****************************************************************************3* Copyright (C) 2014-2016 x264 project4*5* Authors: Janne Grunau <[email protected]>6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License as published by9* the Free Software Foundation; either version 2 of the License, or10* (at your option) any later version.11*12* This program is distributed in the hope that it will be useful,13* but WITHOUT ANY WARRANTY; without even the implied warranty of14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the15* GNU General Public License for more details.16*17* You should have received a copy of the GNU General Public License18* along with this program; if not, write to the Free Software19* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111, USA.20*21* This program is also available under a commercial proprietary license.22* For more information, contact us at [email protected].23*****************************************************************************/2425#include "common/common.h"26#include "asm-offsets.h"2728#define X264_CHECK_OFFSET(s, m, o) struct check_##s##_##m \29{ \30int m_##m[2 * (offsetof(s, m) == o) - 1]; \31}3233X264_CHECK_OFFSET(x264_cabac_t, i_low, CABAC_I_LOW);34X264_CHECK_OFFSET(x264_cabac_t, i_range, CABAC_I_RANGE);35X264_CHECK_OFFSET(x264_cabac_t, i_queue, CABAC_I_QUEUE);36X264_CHECK_OFFSET(x264_cabac_t, i_bytes_outstanding, CABAC_I_BYTES_OUTSTANDING);37X264_CHECK_OFFSET(x264_cabac_t, p_start, CABAC_P_START);38X264_CHECK_OFFSET(x264_cabac_t, p, CABAC_P);39X264_CHECK_OFFSET(x264_cabac_t, p_end, CABAC_P_END);40X264_CHECK_OFFSET(x264_cabac_t, f8_bits_encoded, CABAC_F8_BITS_ENCODED);41X264_CHECK_OFFSET(x264_cabac_t, state, CABAC_STATE);424344