From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 34440 invoked by alias); 30 Aug 2016 23:39:50 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 34428 invoked by uid 89); 30 Aug 2016 23:39:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=__set_errno, math_private.h, math_privateh, UD:math_private.h X-HELO: mx0a-001b2d01.pphosted.com X-IBM-Helo: d03dlp02.boulder.ibm.com X-IBM-MailFrom: murphyp@linux.vnet.ibm.com From: "Paul E. Murphy" To: libc-alpha@sourceware.org Subject: [PATCH 5/5] Extend generic k_rem_pio2 implementation using generics. Date: Tue, 30 Aug 2016 23:39:00 -0000 In-Reply-To: References: In-Reply-To: References: X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16083023-0008-0000-0000-0000056EF308 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00005680; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000184; SDB=6.00751825; UDB=6.00355389; IPR=6.00524632; BA=6.00004681; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00012523; XFM=3.00000011; UTC=2016-08-30 23:39:45 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16083023-0009-0000-0000-00003AB8094D Message-Id: <52858566502889b94bf1d4127aaa027cc51a40fb.1472599898.git.murphyp@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-08-30_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1608300225 X-SW-Source: 2016-08/txt/msg00917.txt.bz2 This is actually just an internal stub. It is already implemented where needed. This ensures there is always an empty stub for each type/format when it is not needed. * math/Makefile: (gen-libm-calls): Add k_rem_pio2. (libm-calls): Remove above. * math/k_rem_pio2l.c: Refactor into ... * math/k_rem_pio2_template.c: New file. --- math/Makefile | 5 +++-- math/k_rem_pio2_template.c | 2 ++ math/k_rem_pio2l.c | 15 --------------- 3 files changed, 5 insertions(+), 17 deletions(-) create mode 100644 math/k_rem_pio2_template.c delete mode 100644 math/k_rem_pio2l.c diff --git a/math/Makefile b/math/Makefile index c0d7ff0..0eb904f 100644 --- a/math/Makefile +++ b/math/Makefile @@ -49,14 +49,15 @@ gen-libm-calls = cargF conjF cimagF crealF cabsF s_cacosF \ s_cacoshF s_ccosF s_ccoshF s_casinF s_csinF s_casinhF \ k_casinhF s_csinhF k_casinhF s_csinhF s_catanhF s_catanF \ s_ctanF s_ctanhF s_cexpF s_clogF s_cprojF s_csqrtF \ - s_cpowF s_clog10F s_fdimF s_nextdownF s_fmaxF s_fminF + s_cpowF s_clog10F s_fdimF s_nextdownF s_fmaxF s_fminF \ + k_rem_pio2F libm-calls = \ e_acosF e_acoshF e_asinF e_atan2F e_atanhF e_coshF e_expF e_fmodF \ e_hypotF e_j0F e_j1F e_jnF e_lgammaF_r e_logF e_log10F e_powF \ e_rem_pio2F e_remainderF e_scalbF e_sinhF e_sqrtF e_gammaF_r \ e_ilogbF \ - k_cosF k_rem_pio2F k_sinF k_tanF s_asinhF s_atanF s_cbrtF \ + k_cosF k_sinF k_tanF s_asinhF s_atanF s_cbrtF \ s_ceilF s_cosF s_erfF s_expm1F s_fabsF \ s_floorF s_log1pF w_log1pF s_logbF \ s_nextafterF s_nexttowardF s_rintF s_scalblnF w_scalblnF \ diff --git a/math/k_rem_pio2_template.c b/math/k_rem_pio2_template.c new file mode 100644 index 0000000..4bb79f6 --- /dev/null +++ b/math/k_rem_pio2_template.c @@ -0,0 +1,2 @@ +/* This function is not necessary for all formats/types. If necessary, override this + in the format/type specific directory. */ diff --git a/math/k_rem_pio2l.c b/math/k_rem_pio2l.c deleted file mode 100644 index 01bf158..0000000 --- a/math/k_rem_pio2l.c +++ /dev/null @@ -1,15 +0,0 @@ -#include -#include -#include -#include - -int -__kernel_rem_pio2l (long double *x, long double *y, int e0, int nx, int prec, - const int *ipio2) -{ - fputs ("__kernel_rem_pio2l not implemented\n", stderr); - __set_errno (ENOSYS); - return 0.0; -} - -stub_warning (__kernel_rem_pio2l) -- 2.4.11