Coverage Report

Created: 2025-07-01 06:46

/src/FreeRDP/libfreerdp/primitives/prim_shift.h
Line
Count
Source (jump to first uncovered line)
1
/**
2
 * FreeRDP: A Remote Desktop Protocol Implementation
3
 * Primitives copy
4
 *
5
 * Copyright 2024 Armin Novak <anovak@thincast.com>
6
 * Copyright 2024 Thincast Technologies GmbH
7
 *
8
 * Licensed under the Apache License, Version 2.0 (the "License");
9
 * you may not use this file except in compliance with the License.
10
 * You may obtain a copy of the License at
11
 *
12
 *     http://www.apache.org/licenses/LICENSE-2.0
13
 *
14
 * Unless required by applicable law or agreed to in writing, software
15
 * distributed under the License is distributed on an "AS IS" BASIS,
16
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
 * See the License for the specific language governing permissions and
18
 * limitations under the License.
19
 */
20
21
#ifndef FREERDP_LIB_PRIM_SHIFT_H
22
#define FREERDP_LIB_PRIM_SHIFT_H
23
24
#include <winpr/wtypes.h>
25
#include <winpr/sysinfo.h>
26
27
#include <freerdp/config.h>
28
#include <freerdp/primitives.h>
29
#include "prim_internal.h"
30
31
FREERDP_LOCAL void primitives_init_shift_sse3_int(primitives_t* WINPR_RESTRICT prims);
32
static inline void primitives_init_shift_sse3(primitives_t* WINPR_RESTRICT prims)
33
0
{
34
0
  if (!IsProcessorFeaturePresent(PF_SSE2_INSTRUCTIONS_AVAILABLE) ||
35
0
      !IsProcessorFeaturePresent(PF_SSE3_INSTRUCTIONS_AVAILABLE))
36
0
    return;
37
38
0
  primitives_init_shift_sse3_int(prims);
39
0
}
Unexecuted instantiation: prim_shift.c:primitives_init_shift_sse3
Unexecuted instantiation: prim_shift_sse3.c:primitives_init_shift_sse3
40
41
#endif