Coverage Report

Created: 2025-10-28 07:26

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libavif/ext/aom/third_party/SVT-AV1/synonyms.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
3
 *
4
 * This source code is subject to the terms of the BSD 2 Clause License and
5
 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6
 * was not distributed with this source code in the LICENSE file, you can
7
 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8
 * Media Patent License 1.0 was not distributed with this source code in the
9
 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
10
 */
11
12
#ifndef AOM_THIRD_PARTY_SVT_AV1_SYNONYMS_H_
13
#define AOM_THIRD_PARTY_SVT_AV1_SYNONYMS_H_
14
15
#include "aom_dsp/x86/mem_sse2.h"
16
#include "aom_dsp/x86/synonyms.h"
17
18
static inline __m128i load_u8_8x2_sse2(const uint8_t *const src,
19
11.2M
                                       const ptrdiff_t stride) {
20
11.2M
  return load_8bit_8x2_to_1_reg_sse2(src, (int)(sizeof(*src) * stride));
21
11.2M
}
convolve_2d_avx2.c:load_u8_8x2_sse2
Line
Count
Source
19
10.3M
                                       const ptrdiff_t stride) {
20
10.3M
  return load_8bit_8x2_to_1_reg_sse2(src, (int)(sizeof(*src) * stride));
21
10.3M
}
convolve_avx2.c:load_u8_8x2_sse2
Line
Count
Source
19
988k
                                       const ptrdiff_t stride) {
20
988k
  return load_8bit_8x2_to_1_reg_sse2(src, (int)(sizeof(*src) * stride));
21
988k
}
22
23
static AOM_FORCE_INLINE void store_u8_4x2_sse2(const __m128i src,
24
                                               uint8_t *const dst,
25
1.82M
                                               const ptrdiff_t stride) {
26
1.82M
  xx_storel_32(dst, src);
27
1.82M
  *(uint32_t *)(dst + stride) =
28
1.82M
      ((uint32_t)_mm_extract_epi16(src, 3) << 16) | _mm_extract_epi16(src, 2);
29
1.82M
}
convolve_2d_avx2.c:store_u8_4x2_sse2
Line
Count
Source
25
12.6k
                                               const ptrdiff_t stride) {
26
12.6k
  xx_storel_32(dst, src);
27
12.6k
  *(uint32_t *)(dst + stride) =
28
12.6k
      ((uint32_t)_mm_extract_epi16(src, 3) << 16) | _mm_extract_epi16(src, 2);
29
12.6k
}
convolve_avx2.c:store_u8_4x2_sse2
Line
Count
Source
25
1.80M
                                               const ptrdiff_t stride) {
26
1.80M
  xx_storel_32(dst, src);
27
1.80M
  *(uint32_t *)(dst + stride) =
28
1.80M
      ((uint32_t)_mm_extract_epi16(src, 3) << 16) | _mm_extract_epi16(src, 2);
29
1.80M
}
30
31
#endif  // AOM_THIRD_PARTY_SVT_AV1_SYNONYMS_H_