[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 7/8] lib: move bsearch code
On 18.11.2020 19:09, Julien Grall wrote: > On 23/10/2020 11:19, Jan Beulich wrote: >> --- a/xen/include/xen/compiler.h >> +++ b/xen/include/xen/compiler.h >> @@ -12,6 +12,7 @@ >> >> #define inline __inline__ >> #define always_inline __inline__ __attribute__ ((__always_inline__)) >> +#define gnu_inline __inline__ __attribute__ ((__gnu_inline__)) > > bsearch() is only used by Arm and I haven't seen anyone so far > complaining about the perf of I/O emulation. > > Therefore, I am not convinced that there is enough justification to > introduce a GNU attribute just for this patch. Please settle this with Andrew: He had asked for the function to become inline. I don't view making it static inline in the header as an option here - if the compiler decides to not inline it, we should not end up with multiple instances in different CUs. And without making it static inline the attribute needs adding; at least I'm unaware of an alternative which works with the various compiler versions. Jan
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |