mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-16 04:36:57 +00:00
jit: made private functions static
This comforms to Rule 6.2 of Barr C code standard. Signed-off-by: Ronald Caesar <github43132@proton.me>
This commit is contained in:
parent
a0ed4382a5
commit
a543f78b77
1 changed files with 5 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#include "arm32.h"
|
#include "arm32.h"
|
||||||
#include <string.h>
|
|
||||||
#include "common/passert.h"
|
#include "common/passert.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#define LOG_MODULE "jit"
|
#define LOG_MODULE "jit"
|
||||||
#include "common/logging.h"
|
#include "common/logging.h"
|
||||||
|
|
@ -16,10 +16,8 @@ namespace pound::jit::decoder
|
||||||
* Foward Declarations
|
* Foward Declarations
|
||||||
* ============================================================================
|
* ============================================================================
|
||||||
*/
|
*/
|
||||||
void arm32_add_instruction(arm32_decoder_t* decoder, const char* name, const char* bitstring);
|
static void arm32_add_instruction(arm32_decoder_t* decoder, const char* name, const char* bitstring);
|
||||||
|
static void arm32_parse_bitstring(const char* bitstring, uint32_t* mask, uint32_t* expected);
|
||||||
void arm32_parse_bitstring(const char* bitstring, uint32_t* mask, uint32_t* expected);
|
|
||||||
void arm32_grow_instructions_array(arm32_decoder_t* decoder, size_t new_capacity);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ============================================================================
|
* ============================================================================
|
||||||
|
|
@ -71,7 +69,7 @@ arm32_instruction_info_t* arm32_decode(arm32_decoder_t* decoder, uint32_t instru
|
||||||
* ============================================================================
|
* ============================================================================
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void arm32_add_instruction(arm32_decoder_t* decoder, const char* name, const char* bitstring)
|
static void arm32_add_instruction(arm32_decoder_t* decoder, const char* name, const char* bitstring)
|
||||||
{
|
{
|
||||||
PVM_ASSERT(nullptr != decoder);
|
PVM_ASSERT(nullptr != decoder);
|
||||||
PVM_ASSERT(nullptr != decoder->allocator.data);
|
PVM_ASSERT(nullptr != decoder->allocator.data);
|
||||||
|
|
@ -96,7 +94,7 @@ void arm32_add_instruction(arm32_decoder_t* decoder, const char* name, const cha
|
||||||
LOG_TRACE("Expected: 0x%08X", info->expected);
|
LOG_TRACE("Expected: 0x%08X", info->expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
void arm32_parse_bitstring(const char* bitstring, uint32_t* mask, uint32_t* expected)
|
static void arm32_parse_bitstring(const char* bitstring, uint32_t* mask, uint32_t* expected)
|
||||||
{
|
{
|
||||||
PVM_ASSERT(nullptr != bitstring);
|
PVM_ASSERT(nullptr != bitstring);
|
||||||
PVM_ASSERT(nullptr != mask);
|
PVM_ASSERT(nullptr != mask);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue