Conversation
|
FYI x86 implem do support So do we keep the same file "layout" for PowerPC ? or rename the file cpu_features/src/impl_x86_freebsd.c Lines 33 to 34 in c74a85d cpu_features/src/impl_x86_linux_or_android.c Lines 32 to 33 in c74a85d |
|
For |
|
While the current implementation with |
Ah! Thx a lot for the information. I was unaware of |
|
This function is available without dynamic loading. You just need FreeBSD 12.0 or newer and include |
|
Pull request rebased and fixed, It currently builds on the support added in 89a3f03, which adds support for using |
|
@kgotlinux, could you please add and make sure the following command will work fine? bazel run list_cpu_features |
|
@kgotlinux can you clang format the EDIT: never mind, I'll do it. |
This builds on the code added in 89a3f03. Since AT_PLATFORM is not available on FreeBSD, currently only architecture detection and CPU feature detection work.
|
@gchatelet, I see |
Fair enough, thx for noticing. @Mizux would you have a bit of time to add CI for FreeBSD / Power ? |
@gchatelet And I question why cpu_features does something so bizarre on X86 when nothing else in the ecosystem of OSS does? |
|
I bumped into this PR when wanting to add support for OpenBSD/powerpc and powerpc64. No point reinventing the wheel when this looks close enough to what I was looking for. |
All the tests pass.