在2025年1月1日一月 下午2:57,Oleg Endo写道:
> On Wed, 2025-01-01 at 14:43 +0000, Jiaxun Yang wrote:
>>
>> +#ifdef __SH_FPU_ANY__
>> +#define _FPU_GETCW(fpscr) __asm__ volatile ("sts fpscr,%0" : "=r" (fpscr))
>> +#define _FPU_SETCW(fpscr) __asm__ volatile ("lds %0,fpscr" : : "r" (fpscr))
>>
>
> There's already:
> __builtin_sh_get_fpscr
> __builtin_sh_set_fpscr
>
> .. can you please use that instead of the inline asm?
Done in v2, it was carried over from glibc :-)
Thanks
>
> Best regards,
> Oleg Endo
--
- Jiaxun