mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- Added C99 checks to "complex_headers.h".
- No longer uses a local copysign() function in "math_kernel_scalbn.c". - Fixed an assignment which actually came out as a comparison in "stdio_vfscanf.c". git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14946 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: complex_headers.h,v 1.2 2005-04-03 10:53:24 obarthel Exp $
|
* $Id: complex_headers.h,v 1.3 2005-05-12 14:50:06 obarthel Exp $
|
||||||
*
|
*
|
||||||
* :ts=4
|
* :ts=4
|
||||||
*
|
*
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
#if defined(FLOATING_POINT_SUPPORT) && defined(__GNUC__) && ((__STDC_VERSION__ + 0) >= 199901L)
|
#if defined(FLOATING_POINT_SUPPORT) && defined(__GNUC__) && defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
|
||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: math_kernel_scalbn.c,v 1.3 2005-02-25 10:14:21 obarthel Exp $
|
* $Id: math_kernel_scalbn.c,v 1.4 2005-05-12 14:50:06 obarthel Exp $
|
||||||
*
|
*
|
||||||
* :ts=4
|
* :ts=4
|
||||||
*
|
*
|
||||||
@@ -50,17 +50,6 @@
|
|||||||
|
|
||||||
/****************************************************************************/
|
/****************************************************************************/
|
||||||
|
|
||||||
INLINE STATIC double copysign(double x, double y)
|
|
||||||
{
|
|
||||||
unsigned int hx,hy;
|
|
||||||
|
|
||||||
GET_HIGH_WORD(hx,x);
|
|
||||||
GET_HIGH_WORD(hy,y);
|
|
||||||
SET_HIGH_WORD(x,(hx&0x7fffffff)|(hy&0x80000000));
|
|
||||||
|
|
||||||
return x;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const double
|
static const double
|
||||||
huge = 1.0e+300,
|
huge = 1.0e+300,
|
||||||
tiny = 1.0e-300,
|
tiny = 1.0e-300,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $Id: stdio_vfscanf.c,v 1.13 2005-05-08 11:27:26 obarthel Exp $
|
* $Id: stdio_vfscanf.c,v 1.14 2005-05-12 14:50:06 obarthel Exp $
|
||||||
*
|
*
|
||||||
* :ts=4
|
* :ts=4
|
||||||
*
|
*
|
||||||
@@ -309,7 +309,7 @@ vfscanf(FILE *stream, const char *format, va_list arg)
|
|||||||
/* Check for long long parameters. */
|
/* Check for long long parameters. */
|
||||||
if(parameter_size == parameter_size_long && c == 'l')
|
if(parameter_size == parameter_size_long && c == 'l')
|
||||||
{
|
{
|
||||||
parameter_size == parameter_size_long_long;
|
parameter_size = parameter_size_long_long;
|
||||||
|
|
||||||
format++;
|
format++;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user