-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use def instead of enum for BLASFEO_PROCESSOR_FEATURES
- Loading branch information
Showing
2 changed files
with
29 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a96c518
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.
Moving the feature listing to a define in the C file will break the intended use-case of the first two functions (
blasfeo_processor_cpu_features
andblasfeo_processor_library_features
), since they will give the caller an integer containing the bitmask of the features the processor supports. Without the feature listing in the header file, user-code that wants to use these functions won't be able to understand the returned bitflags easily. In my opinion, it is better to leave them in the header file instead of moving them to the C file.a96c518
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.
Hi Ian, I did this change as a fix to an issue with a double-defined
BLASFEO_PROCESSOR_FEATURES
enum compiler error.Now I don't remember exactly, but it could have been on windows, possibly in another library including the BLASFEO library.