]> sourceware.org Git - glibc.git/commit
Refactor PRINT_FPHEX_LONG_DOUBLE into a reusable macro
authorGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Fri, 2 Jun 2017 19:03:40 +0000 (16:03 -0300)
committerGabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Wed, 7 Jun 2017 20:06:31 +0000 (17:06 -0300)
commit2bc646c9e95b7c0005b2bc09c06671ffbb509629
tree7abac320e7add1e31b5759ecc8003b32fadfa071
parentaab0f374e7c43f6baf88db271865feabb7bcc1b2
Refactor PRINT_FPHEX_LONG_DOUBLE into a reusable macro

This patch refactors the macro PRINT_FPHEX_LONG_DOUBLE from the file
sysdeps/ieee754/ldbl-128/printf_fphex.c into a function-like macro to
enable its use for both long double and _Float128, when they are
ABI-distinct.

* sysdeps/ieee754/ldbl-128/printf_fphex.c: Include
ldbl-128/printf_fphex_macros.h for the definition of PRINT_FPHEX.
(PRINT_FPHEX_LONG_DOUBLE): Define based on PRINT_FPHEX.
* sysdeps/ieee754/ldbl-128/printf_fphex_macros.h
(PRINT_FPHEX): New function-like macro that can be used for long
double, as well as for _Float128
ChangeLog
sysdeps/ieee754/ldbl-128/printf_fphex.c
sysdeps/ieee754/ldbl-128/printf_fphex_macros.h [new file with mode: 0644]
This page took 0.044104 seconds and 5 git commands to generate.