hanchenye-llvm-project/libc/spec
Siva Chandra Reddy 139018265b [libc] Add implementations long double fabsl and truncl functions.
Current implementations of single precision and double precision
floating point operations operate on bits of the integer type of
same size. The code made use of magic masks which were listed as
literal integer values. This is not possible in the case of long
double type as the mantissa of quad-precision long double type used
on non-x86 architectures is wider that the widest integer type for
which we can list literal values. So, in this patch, to avoid
using magic masks specified with literal values, we use packed
bit-field struct types and let the compiler generate the masks.
This new scheme allows us to implement long double flavors of the
various floating point operations. To keep the size of the patch
small, only the implementations of fabs and trunc have been
switched to the new scheme. In following patches, all exisiting
implementations will be switched to the new scheme.

Reviewers: asteinhauser

Differential Revision: https://reviews.llvm.org/D82036
2020-06-18 11:08:26 -07:00
..
gnu_ext.td [libc] Add a GNU extensions spec containing sincosf from math.h. 2020-03-25 15:13:22 -07:00
linux.td [libc] Add ability to generate enum types/values to HdrGen. 2020-02-28 23:27:32 -08:00
llvm_libc_ext.td [libc][NFC] Add bzero to list of entrypoints. 2020-06-08 21:44:39 -07:00
posix.td [libc] Add spec for sigdelset and sigfillset. 2020-04-23 16:38:47 -07:00
spec.td [libc] Add write(2) implementation for Linux and FDReader test utility 2020-04-17 13:21:05 -04:00
stdc.td [libc] Add implementations long double fabsl and truncl functions. 2020-06-18 11:08:26 -07:00