Code-style/copyright cleanup.
This commit is contained in:
parent
63a62e7ea0
commit
17f28667b3
9 changed files with 40 additions and 26 deletions
|
@ -6,7 +6,8 @@
|
|||
* Copyright 2016 Jay D Dee <jayddee246@gmail.com>
|
||||
* Copyright 2017-2018 XMR-Stak <https://github.com/fireice-uk>, <https://github.com/psychocrypt>
|
||||
* Copyright 2018 Lee Clagett <https://github.com/vtnerd>
|
||||
* Copyright 2016-2018 XMRig <https://github.com/xmrig>, <support@xmrig.com>
|
||||
* Copyright 2018-2019 SChernykh <https://github.com/SChernykh>
|
||||
* Copyright 2016-2019 XMRig <https://github.com/xmrig>, <support@xmrig.com>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -89,7 +90,7 @@ void Mem::release(MemInfo &info)
|
|||
}
|
||||
|
||||
|
||||
void* Mem::allocate_executable_memory(size_t size)
|
||||
void *Mem::allocateExecutableMemory(size_t size)
|
||||
{
|
||||
# if defined(__APPLE__)
|
||||
return mmap(0, size, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE | MAP_ANON, -1, 0);
|
||||
|
@ -99,7 +100,7 @@ void* Mem::allocate_executable_memory(size_t size)
|
|||
}
|
||||
|
||||
|
||||
void Mem::FlushInstructionCache(void* p, size_t size)
|
||||
void Mem::flushInstructionCache(void *p, size_t size)
|
||||
{
|
||||
__builtin___clear_cache(reinterpret_cast<char*>(p), reinterpret_cast<char*>(p) + size);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue