Macroize function declarations in math_private.h
commit9581e76dbb4a8dad8a4493ef6833685153edd1d9
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Tue, 28 Mar 2017 12:48:42 +0000 (28 09:48 -0300)
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Mon, 24 Apr 2017 12:30:56 +0000 (24 09:30 -0300)
tree1922d32e72542a25d59be00a3c483f8bda429972
parent5ea9ce3749007348a8d12e8eef9e0ccc6fd90aec
Macroize function declarations in math_private.h

This patch moves the declaration of many floating-point functions from
math_private.h to math_private_calls.h and macroize the declaration to
be dependent on floating-point type.  For each of float, double, and
long double, the new header file is included once.  This reduces the
amount of repetitive boilerplate that will be required when adding
float128 versions of these functions.

Tested for powerpc64le and s390x.

* sysdeps/generic/math_private.h: Move the declaration of many
functions to sysdeps/generic/math_private_calls.h.
* sysdeps/generic/math_private_calls.h: New file with the
declarations of the functions removed from math_private.h
macroized by floating-point type.
ChangeLog
sysdeps/generic/math_private.h
sysdeps/generic/math_private_calls.h [new file with mode: 0644]