Cleanup ARM code.
This commit is contained in:
parent
c27f535768
commit
df4532d9a1
6 changed files with 33 additions and 38 deletions
|
@ -16,7 +16,6 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
|
||||
#include "base/tools/String.h"
|
||||
|
||||
|
||||
|
@ -63,7 +62,7 @@ xmrig::BasicCpuInfo::BasicCpuInfo() :
|
|||
m_units[i] = i;
|
||||
}
|
||||
|
||||
# ifdef XMRIG_ARMv8
|
||||
# if (XMRIG_ARM == 8)
|
||||
memcpy(m_brand, "ARMv8", 5);
|
||||
# else
|
||||
memcpy(m_brand, "ARMv7", 5);
|
||||
|
@ -128,7 +127,7 @@ rapidjson::Value xmrig::BasicCpuInfo::toJSON(rapidjson::Document &doc) const
|
|||
out.AddMember("msr", "none", allocator);
|
||||
out.AddMember("assembly", "none", allocator);
|
||||
|
||||
# ifdef XMRIG_ARMv8
|
||||
# if (XMRIG_ARM == 8)
|
||||
out.AddMember("arch", "aarch64", allocator);
|
||||
# else
|
||||
out.AddMember("arch", "aarch32", allocator);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue