core/job: drop pure qualifier for static inline functions
The impl is directly visible to the compiler so it can apply all sorts of optimizations wherever it sees fit. And with the previous commit they are actually "const".
This commit is contained in:
+3
-3
@@ -164,15 +164,15 @@ void job_dependency_free(JobDependency *l);
|
||||
|
||||
JobType job_type_lookup_merge(JobType a, JobType b) _const_;
|
||||
|
||||
_pure_ static inline bool job_type_is_mergeable(JobType a, JobType b) {
|
||||
static inline bool job_type_is_mergeable(JobType a, JobType b) {
|
||||
return job_type_lookup_merge(a, b) >= 0;
|
||||
}
|
||||
|
||||
_pure_ static inline bool job_type_is_conflicting(JobType a, JobType b) {
|
||||
static inline bool job_type_is_conflicting(JobType a, JobType b) {
|
||||
return a != JOB_NOP && b != JOB_NOP && !job_type_is_mergeable(a, b);
|
||||
}
|
||||
|
||||
_pure_ static inline bool job_type_is_superset(JobType a, JobType b) {
|
||||
static inline bool job_type_is_superset(JobType a, JobType b) {
|
||||
/* Checks whether operation a is a "superset" of b in its actions */
|
||||
if (b == JOB_NOP)
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user