This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
This patch gets rid of GCC 3.4's warning: ../sysdeps/ieee754/dbl-64/e_pow.c:49: warning: conflicting types for built-in function 'log2' Ok to commit? Andreas 2004-01-22 Andreas Jaeger <aj@suse.de> * sysdeps/ieee754/dbl-64/e_pow.c (log2): Rename to log2x to avoid warnings for builtin function log2.
============================================================ Index: sysdeps/ieee754/dbl-64/e_pow.c --- sysdeps/ieee754/dbl-64/e_pow.c 26 Aug 2002 22:40:36 -0000 1.12 +++ sysdeps/ieee754/dbl-64/e_pow.c 22 Jan 2004 10:36:04 -0000 @@ -1,7 +1,7 @@ /* * IBM Accurate Mathematical Library * written by International Business Machines Corp. - * Copyright (C) 2001, 2002 Free Software Foundation + * Copyright (C) 2001, 2002, 2004 Free Software Foundation * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by @@ -46,7 +46,7 @@ double __exp1(double x, double xx, double error); static double log1(double x, double *delta, double *error); -static double log2(double x, double *delta, double *error); +static double log2x(double x, double *delta, double *error); double __slowpow(double x, double y,double z); static double power1(double x, double y); static int checkint(double x); @@ -159,7 +159,7 @@ double __ieee754_pow(double x, double y) /**************************************************************************/ static double power1(double x, double y) { double z,a,aa,error, t,a1,a2,y1,y2; - z = log2(x,&aa,&error); + z = log2x(x,&aa,&error); t = y*134217729.0; y1 = t - (t-y); y2 = y - y1; @@ -272,7 +272,7 @@ static double log1(double x, double *del /* Computing log(x)(x is left argument).The result is return double + delta.*/ /* The result is bounded by error (right argument) */ /****************************************************************************/ -static double log2(double x, double *delta, double *error) { +static double log2x(double x, double *delta, double *error) { int i,j,m; #if 0 int n;
-- Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
Attachment:
pgp00000.pgp
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |