/* * Copyright (c) 2018, Alliance for Open Media. All rights reserved. * * This source code is subject to the terms of the BSD 2 Clause License and * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License * was not distributed with this source code in the LICENSE file, you can * obtain it at www.aomedia.org/license/software. If the Alliance for Open * Media Patent License 1.0 was not distributed with this source code in the * PATENTS file, you can obtain it at www.aomedia.org/license/patent. */ #include <stdint.h> #include <smmintrin.h> #include "config/av1_rtcd.h" // Byte-boundary alignment issues #define ALIGN_SIZE … #define ALIGN_MASK … #define CALC_CRC(op, crc, type, buf, len) … /** * Calculates 32-bit CRC for the input buffer * polynomial is 0x11EDC6F41 * @return A 32-bit unsigned integer representing the CRC */ uint32_t av1_get_crc32c_value_sse4_2(void *crc_calculator, uint8_t *p, size_t len) { … }