On 2021-12-23 3:14 p.m., John David Anglin wrote:
-static inline bool _futex_force_interruptions(unsigned long ua) +static inline unsigned long _futex_force_interruptions(unsigned long ua) { - bool result; + register unsigned long error __asm__ ("r8") = 0; + register unsigned long temp; __asm__ __volatile__( - "1:\tldw 0(%1), %0\n"
We can avoid two variables if we clear the return value after ldw.
- "2:\tstbys,e %%r0, 0(%1)\n" - "\tcomclr,= %%r0, %%r0, %0\n" - "3:\tldi 1, %0\n"
Dave -- John David Anglin dave.anglin@xxxxxxxx