basic,shared: mark eligible functions with _pure_/_const_

Following the recent witch hunt done to static inline functions
I figure we should at least give the compiler some more hint
on optimizations.
This commit is contained in:
Mike Yuan
2025-05-26 20:26:58 +02:00
parent fae687ec2b
commit 180341e732
19 changed files with 88 additions and 90 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ void valgrind_summary_hack(void);
int pid_compare_func(const pid_t *a, const pid_t *b);
bool nice_is_valid(int n);
bool nice_is_valid(int n) _const_;
bool sched_policy_is_valid(int i) _const_;
bool sched_priority_is_valid(int i) _const_;