Re: [LEDE-DEV] [PATCH 1/2] libubox: Add pure attribute to several functions.

2016-11-04 Thread Felix Fietkau
On 2016-11-02 04:03, Rosen Penev wrote: > Manually adding pure allows the compiler to optimize several > functions for better performance. All were found with gcc's > -Wsuggest-attribute=pure. The switch is conservative meaning there are > more such functions. > > Signed-off by: Rosen Penev Pleas

[LEDE-DEV] [PATCH 1/2] libubox: Add pure attribute to several functions.

2016-11-01 Thread Rosen Penev
Manually adding pure allows the compiler to optimize several functions for better performance. All were found with gcc's -Wsuggest-attribute=pure. The switch is conservative meaning there are more such functions. Signed-off by: Rosen Penev --- avl-cmp.h | 6 -- avl.c | 2 ++ blob.h