Coverage Report

Created: 2026-09-14 06:39

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libhevc/common/ihevc_mem_fns.c
Line
Count
Source
1
/******************************************************************************
2
*
3
* Copyright (C) 2012 Ittiam Systems Pvt Ltd, Bangalore
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at:
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
******************************************************************************/
18
/**
19
 *******************************************************************************
20
 * @file
21
 *  ihevc_mem_fns.c
22
 *
23
 * @brief
24
 *  Functions used for memory operations
25
 *
26
 * @author
27
 *  Ittiam
28
 *
29
 * @par List of Functions:
30
 *
31
 * @remarks
32
 *  None
33
 *
34
 *******************************************************************************
35
 */
36
37
/*****************************************************************************/
38
/* File Includes                                                             */
39
/*****************************************************************************/
40
#include <stdio.h>
41
#include <stddef.h>
42
#include <stdlib.h>
43
#include <string.h>
44
#include <assert.h>
45
46
#include "ihevc_typedefs.h"
47
#include "ihevc_mem_fns.h"
48
49
/**
50
 *******************************************************************************
51
 *
52
 * @brief
53
 *   memset of 16bit data of a 8,16 or 32 bytes
54
 *
55
 * @par Description:
56
 *   Does memset of 16bit data for 8,16 or 32 number of bytes
57
 *
58
 * @param[in] pu2_dst
59
 *  UWORD8 pointer to the destination
60
 *
61
 * @param[in] value
62
 *  UWORD16 value used for memset
63
 *
64
 * @param[in] num_words
65
 *  number of words to set
66
 * @returns
67
 *
68
 * @remarks
69
 *  None
70
 *
71
 *******************************************************************************
72
 */
73
74
void ihevc_memset_16bit(UWORD16 *pu2_dst, UWORD16 value, UWORD32 num_words)
75
3.05M
{
76
3.05M
    UWORD32 i;
77
15.8M
    for(i = 0; i < num_words; i++)
78
12.7M
    {
79
12.7M
        *pu2_dst++ = value;
80
12.7M
    }
81
3.05M
}
82
83
84
85
void ihevc_memset_16bit_mul_8(UWORD16 *pu2_dst, UWORD16 value, UWORD32 num_words)
86
0
{
87
0
    UWORD32 i;
88
0
    for(i = 0; i < num_words; i++)
89
0
    {
90
0
        *pu2_dst++ = value;
91
0
    }
92
0
}
93