Electroneum
Macros | Functions | Variables
CryptonightR_JIT.c File Reference
#include <assert.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/mman.h>
#include "int-util.h"
#include "hash-ops.h"
#include "variant4_random_math.h"
#include "CryptonightR_JIT.h"
#include "CryptonightR_template.h"
Include dependency graph for CryptonightR_JIT.c:

Macros

#define APPEND_CODE(src, size)
 

Functions

int v4_generate_JIT_code (const struct V4_Instruction *code, v4_random_math_JIT_func buf, const size_t buf_size)
 

Variables

static const uint8_t prologue []
 
static const uint8_t epilogue []
 

Macro Definition Documentation

◆ APPEND_CODE

#define APPEND_CODE (   src,
  size 
)
Value:
do { \
if (JIT_code + (size) > JIT_code_end) \
return -1; \
memcpy(JIT_code, (src), (size)); \
JIT_code += (size); \
} while (0)

Function Documentation

◆ v4_generate_JIT_code()

int v4_generate_JIT_code ( const struct V4_Instruction code,
v4_random_math_JIT_func  buf,
const size_t  buf_size 
)

Variable Documentation

◆ epilogue

const uint8_t epilogue[]
static
Initial value:
= {
}

◆ prologue

const uint8_t prologue[]
static
Initial value:
= {
}