chromium/third_party/ffmpeg/libavcodec/x86/constants.c

/*
 * MMX/SSE/AVX constants used across x86 dsp optimizations.
 *
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

#include "libavutil/mem_internal.h"
#include "libavutil/x86/asm.h" // for xmm_reg
#include "constants.h"

DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_1)    =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_2)    =;
DECLARE_ASM_ALIGNED(16, const xmm_reg,  ff_pw_3)    =;
DECLARE_ASM_ALIGNED(32, const ymm_reg,  ff_pw_4)    =;
DECLARE_ASM_ALIGNED(16, const xmm_reg,  ff_pw_5)    =;
DECLARE_ALIGNED(16, const xmm_reg,  ff_pw_8)    =;
DECLARE_ASM_ALIGNED(16, const xmm_reg,  ff_pw_9)    =;
DECLARE_ALIGNED(8,  const uint64_t, ff_pw_15)   =;
DECLARE_ALIGNED(16, const xmm_reg,  ff_pw_16)   =;
DECLARE_ASM_ALIGNED(16, const xmm_reg,  ff_pw_18)   =;
DECLARE_ALIGNED(16, const xmm_reg,  ff_pw_20)   =;
DECLARE_ALIGNED(16, const xmm_reg,  ff_pw_32)   =;
DECLARE_ASM_ALIGNED(8,  const uint64_t, ff_pw_42)   =;
DECLARE_ASM_ALIGNED(8,  const uint64_t, ff_pw_53)   =;
DECLARE_ASM_ALIGNED(16, const xmm_reg,  ff_pw_64)   =;
DECLARE_ASM_ALIGNED(8,  const uint64_t, ff_pw_96)   =;
DECLARE_ASM_ALIGNED(8,  const uint64_t, ff_pw_128)  =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_255)  =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_256)  =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_512)  =;
DECLARE_ALIGNED(16, const xmm_reg,  ff_pw_1019) =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_1023) =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_1024) =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_2048) =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_4095) =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_4096) =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_8192) =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pw_m1)   =;

DECLARE_ALIGNED(32, const ymm_reg,  ff_pb_0)    =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pb_1)    =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pb_2)    =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pb_3)    =;
DECLARE_ALIGNED(32, const xmm_reg,  ff_pb_15)   =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pb_80)   =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pb_FE)   =;
DECLARE_ALIGNED(8,  const uint64_t, ff_pb_FC)   =;

DECLARE_ALIGNED(16, const xmm_reg,  ff_ps_neg)  =;

DECLARE_ALIGNED(32, const ymm_reg,  ff_pd_1)    =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pd_16)   =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pd_32)   =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pd_8192) =;
DECLARE_ALIGNED(32, const ymm_reg,  ff_pd_65535)=;