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:
Mike Yuan
2025-11-04 12:17:29 +01:00
parent 1fa9473b07
commit b1947bf6e3
+3 -3
View File
@@ -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;