[PATCH 3/3] mpi/longlong.h: x86-64: use tzcnt instruction for trailing zeros

NIIBE Yutaka gniibe at fsij.org
Thu Oct 6 09:09:07 CEST 2022


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')?


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 )
-- 



More information about the Gcrypt-devel mailing list