Fix compile warning, mostly struct/class inconsistency.
This commit is contained in:
parent
66fd532ee6
commit
6f5d175d12
7 changed files with 24 additions and 18 deletions
|
@ -47,7 +47,7 @@ namespace randomx {
|
|||
rx_aligned_free(ptr);
|
||||
}
|
||||
|
||||
template class AlignedAllocator<CacheLineSize>;
|
||||
template struct AlignedAllocator<CacheLineSize>;
|
||||
|
||||
void* LargePageAllocator::allocMemory(size_t count) {
|
||||
return allocLargePagesMemory(count);
|
||||
|
|
|
@ -36,7 +36,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
namespace randomx {
|
||||
|
||||
class Program;
|
||||
class ProgramConfiguration;
|
||||
struct ProgramConfiguration;
|
||||
class SuperscalarProgram;
|
||||
class JitCompilerX86;
|
||||
class Instruction;
|
||||
|
|
|
@ -29,8 +29,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
#ifndef RANDOMX_H
|
||||
#define RANDOMX_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <type_traits>
|
||||
#include "crypto/randomx/intrin_portable.h"
|
||||
|
||||
|
@ -41,17 +41,20 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
#define RANDOMX_EXPORT
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
|
||||
enum randomx_flags {
|
||||
RANDOMX_FLAG_DEFAULT = 0,
|
||||
RANDOMX_FLAG_LARGE_PAGES = 1,
|
||||
RANDOMX_FLAG_HARD_AES = 2,
|
||||
RANDOMX_FLAG_FULL_MEM = 4,
|
||||
RANDOMX_FLAG_JIT = 8,
|
||||
} randomx_flags;
|
||||
};
|
||||
|
||||
|
||||
struct randomx_dataset;
|
||||
struct randomx_cache;
|
||||
class randomx_vm;
|
||||
|
||||
typedef struct randomx_dataset randomx_dataset;
|
||||
typedef struct randomx_cache randomx_cache;
|
||||
typedef struct randomx_vm randomx_vm;
|
||||
|
||||
struct RandomX_ConfigurationBase
|
||||
{
|
||||
|
|
|
@ -28,10 +28,13 @@
|
|||
#define XMRIG_RX_VM_H
|
||||
|
||||
|
||||
#include <stdint.h>
|
||||
#include "base/tools/Object.h"
|
||||
|
||||
|
||||
struct randomx_vm;
|
||||
#include <cstdint>
|
||||
|
||||
|
||||
class randomx_vm;
|
||||
|
||||
|
||||
namespace xmrig
|
||||
|
@ -44,6 +47,8 @@ class RxDataset;
|
|||
class RxVm
|
||||
{
|
||||
public:
|
||||
XMRIG_DISABLE_COPY_MOVE_DEFAULT(RxVm);
|
||||
|
||||
RxVm(RxDataset *dataset, uint8_t *scratchpad, bool softAes);
|
||||
~RxVm();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue