Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for ARM64/OpenCL (RC5-72) and ARM64 (OGR-NG & ANSI RC5-72) on macOS 11 (Apple Silicon) #16

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update temperature.cpp
Tidied up macOS defintions to a single line.
  • Loading branch information
ShadowLive committed Nov 28, 2020
commit 76704884078619e65313618111f7904449eb40a0
10 changes: 2 additions & 8 deletions plat/macosx/temperature.cpp
Original file line number Diff line number Diff line change
@@ -246,10 +246,7 @@ static UInt32 _SMCread(UInt32 key, io_connect_t connection)
smc_input.key = key;
smc_input.cmd = SMC_READ_KEYINFO;

#if defined(__x86_64__)
if (kIOReturnSuccess == IOConnectCallStructMethod(connection, 2,
&smc_input, input_size, &smc_output, &output_size)) {
#elif defined(__arm64__)
#if defined(__x86_64__) || defined(__arm64__)
if (kIOReturnSuccess == IOConnectCallStructMethod(connection, 2,
&smc_input, input_size, &smc_output, &output_size)) {
#else
@@ -263,10 +260,7 @@ static UInt32 _SMCread(UInt32 key, io_connect_t connection)
if (smc_input.size == 0)
return 0; // Unknown key.

#if defined(__x86_64__)
if (kIOReturnSuccess == IOConnectCallStructMethod(connection, 2,
&smc_input, input_size, &smc_output, &output_size)) {
#elif defined(__arm64__)
#if defined(__x86_64__) || defined(__arm64__)
if (kIOReturnSuccess == IOConnectCallStructMethod(connection, 2,
&smc_input, input_size, &smc_output, &output_size)) {
#else