[PATCH 3/3] mpi/longlong.h: x86-64: use tzcnt instruction for trailing zeros
Jussi Kivilinna
jussi.kivilinna at iki.fi
Sat Oct 8 14:01:36 CEST 2022
On 6.10.2022 10.09, NIIBE Yutaka wrote:
> Hello,
>
> Jussi Kivilinna wrote:
>> * mpi/longlong.h [__x86_64__] (count_trailing_zeros): Add 'rep' prefix
>> for 'bsfq'.
>
> Is it also applicable to 80x86 (IA-32) (adding 'rep')?
>
Yes it is, I'll add 'rep' for i386 too.
>
> Besides, I have another issue/concern here. IIUC, longlong.h upstream
> is GCC. It would be good to import some other changes from the
> upstream. For example, in our version for PPC/POWER, we still have old
> two-syntax asm code, that's quite outdated. ( https://dev.gnupg.org/T5980 )
I can take look into it.
-Jussi
More information about the Gcrypt-devel
mailing list