bug in longlong.h for aarch64 sub_ddmmss

Torbjörn Granlund tg at gmplib.org
Wed Jun 17 21:12:06 UTC 2020


tg at gmplib.org (Torbjörn Granlund) writes:

  A crude test generator:

A slightly better variant.  It expects an argument, either "add" or
"sub", allowing it to test both add_ssaaaa and sub_ddmmss.

This version should work fine on 32-bit systems without modification.

This code is not well-defined (as Vincent might point out) as it
converts between signed and unsigned quantities in the range where the
signed number is negative.  But it does the job I intended it to do.

I will integrate this in some form in the GMP test facility.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gen-longlong.c
Type: application/octet-stream
Size: 3264 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20200617/7f046c83/attachment.obj>
-------------- next part --------------


-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list