Coverage Report

Created: 2024-08-21 06:24

/src/capstonenext/arch/AArch64/AArch64DisassemblerExtension.c
Line
Count
Source (jump to first uncovered line)
1
/* Capstone Disassembly Engine */
2
/* By Nguyen Anh Quynh <aquynh@gmail.com>, 2013-2019 */
3
/*    Rot127 <unisono@quyllur.org>, 2022-2023 */
4
5
#include "AArch64DisassemblerExtension.h"
6
#include "AArch64BaseInfo.h"
7
8
bool AArch64_getFeatureBits(unsigned int mode, unsigned int feature)
9
367k
{
10
  // we support everything
11
367k
  return true;
12
367k
}
13
14
/// Tests a NULL terminated array of features if they are enabled.
15
bool AArch64_testFeatureList(unsigned int mode, const unsigned int *features)
16
10.2k
{
17
10.2k
  int i = 0;
18
14.8k
  while (features[i]) {
19
4.64k
    if (!AArch64_getFeatureBits(mode, features[i]))
20
0
      return false;
21
4.64k
    ++i;
22
4.64k
  }
23
10.2k
  return true;
24
10.2k
}