GMP 6.1.2 t-count_zeros failure on ARM with assertions

Niels Möller nisse at lysator.liu.se
Wed Dec 27 16:15:43 UTC 2017


Vincent Lefevre <vincent at vinc17.net> writes:

>> diff -r 20cf1131dc94 longlong.h
>> --- a/longlong.h	Thu Aug 31 01:00:02 2017 +0200
>> +++ b/longlong.h	Tue Dec 26 10:59:24 2017 +0100
>> @@ -535,7 +535,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype 
>>  #endif /* defined(__ARM_ARCH_2__) ... */
>>  #define count_leading_zeros(count, x)  count_leading_zeros_gcc_clz(count, x)
>>  #define count_trailing_zeros(count, x)  count_trailing_zeros_gcc_ctz(count, x)
>> -#define COUNT_LEADING_ZEROS_0 32
>>  #endif /* __arm__ */
>>  
>>  #if defined (__aarch64__) && W_TYPE_SIZE == 64
>> @@ -586,7 +585,6 @@ extern UWtype __MPN(udiv_qrnnd) (UWtype 
>>  #endif
>>  #define count_leading_zeros(count, x)  count_leading_zeros_gcc_clz(count, x)
>>  #define count_trailing_zeros(count, x)  count_trailing_zeros_gcc_ctz(count, x)
>> -#define COUNT_LEADING_ZEROS_0 64
>>  #endif /* __aarch64__ */
>>  
>>  #if defined (__clipper__) && W_TYPE_SIZE == 32
>
> I confirm that this fixes the problem.

Thanks for testing. Pushed now.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
Internet email is subject to wholesale government surveillance.


More information about the gmp-bugs mailing list