freebsd-skq/lib/libc/quad
dim 26f33e8b6d Merge r358042 from the clang1000-import branch:
Add casts and L suffixes to libc quad support, to work around various
-Werror warnings from clang 10.0.0, such as:

lib/libc/quad/fixdfdi.c:57:12: error: implicit conversion from 'long long' to 'double' changes value from 9223372036854775807 to 9223372036854775808 [-Werror,-Wimplicit-int-float-conversion]
                if (x >= QUAD_MAX)
                      ~~ ^~~~~~~~
/usr/obj/usr/src/powerpc.powerpc/tmp/usr/include/sys/limits.h:89:19: note: expanded from macro 'QUAD_MAX'
#define QUAD_MAX        (__QUAD_MAX)    /* max value for a quad_t */
                         ^~~~~~~~~~
/usr/obj/usr/src/powerpc.powerpc/tmp/usr/include/machine/_limits.h:91:20: note: expanded from macro '__QUAD_MAX'
#define __QUAD_MAX      __LLONG_MAX     /* max value for a quad_t */
                        ^~~~~~~~~~~
/usr/obj/usr/src/powerpc.powerpc/tmp/usr/include/machine/_limits.h:75:21: note: expanded from macro '__LLONG_MAX'
#define __LLONG_MAX     0x7fffffffffffffffLL    /* max value for a long long */
                        ^~~~~~~~~~~~~~~~~~~~

and many instances of:

lib/libc/quad/fixunsdfdi.c:73:17: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
        toppart = (x - ONE_HALF) / ONE;
                       ^~~~~~~~
lib/libc/quad/fixunsdfdi.c:45:19: note: expanded from macro 'ONE_HALF'
#define ONE_HALF        (ONE_FOURTH * 2.0)
                         ^~~~~~~~~~
lib/libc/quad/fixunsdfdi.c:44:23: note: expanded from macro 'ONE_FOURTH'
#define ONE_FOURTH      (1 << (LONG_BITS - 2))
                           ^  ~~~~~~~~~~~~~~~
lib/libc/quad/fixunsdfdi.c:73:29: error: shift count >= width of type [-Werror,-Wshift-count-overflow]
        toppart = (x - ONE_HALF) / ONE;
                                   ^~~
lib/libc/quad/fixunsdfdi.c:46:15: note: expanded from macro 'ONE'
#define ONE             (ONE_FOURTH * 4.0)
                         ^~~~~~~~~~
lib/libc/quad/fixunsdfdi.c:44:23: note: expanded from macro 'ONE_FOURTH'
#define ONE_FOURTH      (1 << (LONG_BITS - 2))
                           ^  ~~~~~~~~~~~~~~~

MFC after:	3 days
2020-02-17 20:24:21 +00:00
..
TESTS
adddi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
anddi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
ashldi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
ashrdi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
cmpdi2.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
divdi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
fixdfdi.c Merge r358042 from the clang1000-import branch: 2020-02-17 20:24:21 +00:00
fixsfdi.c Merge r358042 from the clang1000-import branch: 2020-02-17 20:24:21 +00:00
fixunsdfdi.c Merge r358042 from the clang1000-import branch: 2020-02-17 20:24:21 +00:00
fixunssfdi.c Merge r358042 from the clang1000-import branch: 2020-02-17 20:24:21 +00:00
floatdidf.c Merge r358042 from the clang1000-import branch: 2020-02-17 20:24:21 +00:00
floatdisf.c Merge r358042 from the clang1000-import branch: 2020-02-17 20:24:21 +00:00
floatunsdidf.c Merge r358042 from the clang1000-import branch: 2020-02-17 20:24:21 +00:00
iordi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
lshldi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
lshrdi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
Makefile.inc
moddi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
muldi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
negdi2.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
notdi2.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
qdivrem.c Merge r358042 from the clang1000-import branch: 2020-02-17 20:24:21 +00:00
quad.h Merge r358042 from the clang1000-import branch: 2020-02-17 20:24:21 +00:00
subdi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
Symbol.map
ucmpdi2.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
udivdi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
umoddi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00
xordi3.c ANSIfy libc/quad 2018-10-21 00:20:40 +00:00