-
Notifications
You must be signed in to change notification settings - Fork 268
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
New code layout - breaking change in cpu_features_macros.h #194
Conversation
if (CpuFeatures_StringView_IsEquals(key, str("Features"))) { | ||
for (size_t i = 0; i < AARCH64_LAST_; ++i) { | ||
kSetters[i](&info->features, CpuFeatures_StringView_HasWord( | ||
value, kCpuInfoFlags[i], ' ')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kCpuInfoFlags undeclared variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx! This is not ready for review yet :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
understood, sorry :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ready for review if you want to have a look @toor1245 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, I'll see
Thx for the review. Submitting now. |
This commit helps with platform code separation (fixes #3). It should also help with the build as we can simply include all
impl_*.c
files regardless of OS / arch.Note: this patch contains breaking changes in
include/cpu_features_macros.h
CPU_FEATURES_OS_LINUX_OR_ANDROID
does not exist anymoreCPU_FEATURES_OS_FREEBSD
,CPU_FEATURES_OS_ANDROID
andCPU_FEATURES_OS_LINUX
are now mutually exclusive (i.e.CPU_FEATURES_OS_ANDROID
does not implyCPU_FEATURES_OS_LINUX
)CPU_FEATURES_OS_DARWIN
has been renamed intoCPU_FEATURES_OS_MACOS
to be able to target non-Mac Apple products (IOS, TV, WATCH). They are now targetable withCPU_FEATURES_OS_IPHONE
. This matches Apple naming convention described in this stackoverflow.