Thread View: gnu.g++.lib.bug
2 messages
2 total messages
Started by Robert R. Henry
Thu, 17 Dec 1992 19:38
libg++2.2 math.h scalb
Author: Robert R. Henry
Date: Thu, 17 Dec 1992 19:38
Date: Thu, 17 Dec 1992 19:38
10 lines
747 bytes
747 bytes
The source for libg++-2.2 libg++/g++-include/math.h includes the definition double scalb(double, int); this definition is incorrect for the sunos4.1, predecessors and possibly successors. For those target machines, the definition should be double scalb(double, double); I know that one can argue quite convincingly that Sun has it wrong, but that is immaterial....
Re: libg++2.2 math.h scalb
Author: bothner
Date: Fri, 18 Dec 1992 04:31
Date: Fri, 18 Dec 1992 04:31
36 lines
1293 bytes
1293 bytes
Try this:
===================================================================
RCS file: /rel/cvsfiles/devo/libg++/g++-include/math.h,v
retrieving revision 1.8
diff -c -r1.8 math.h
*** 1.8 1992/11/18 05:47:15
--- math.h 1992/12/18 20:30:18
***************
*** 64,69 ****
--- 64,71 ----
#else
extern "C" {
+ #include <_G_config.h>
+
double acos(double);
double acosh(double);
double asin(double);
***************
*** 106,112 ****
double modf(double, double*);
double pow(double, double);
double rint(double);
! double scalb(double, int);
double sin(double);
double sinh(double);
double sqrt(double);
--- 108,114 ----
double modf(double, double*);
double pow(double, double);
double rint(double);
! double scalb _G_ARGS((double, int));
double sin(double);
double sinh(double);
double sqrt(double);
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads