From d0a4e057bcb3697a2f28dfea5b035dc0fe490828 Mon Sep 17 00:00:00 2001 From: Olaf Barthel Date: Thu, 12 May 2005 14:50:06 +0000 Subject: [PATCH] - 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 --- library/complex_headers.h | 4 ++-- library/math_kernel_scalbn.c | 13 +------------ library/stdio_vfscanf.c | 4 ++-- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/library/complex_headers.h b/library/complex_headers.h index cc4e0f8..415ab90 100755 --- a/library/complex_headers.h +++ b/library/complex_headers.h @@ -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 * @@ -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) /****************************************************************************/ diff --git a/library/math_kernel_scalbn.c b/library/math_kernel_scalbn.c index 0093612..c12425a 100644 --- a/library/math_kernel_scalbn.c +++ b/library/math_kernel_scalbn.c @@ -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 * @@ -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 huge = 1.0e+300, tiny = 1.0e-300, diff --git a/library/stdio_vfscanf.c b/library/stdio_vfscanf.c index 3a43a3f..0322208 100644 --- a/library/stdio_vfscanf.c +++ b/library/stdio_vfscanf.c @@ -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 * @@ -309,7 +309,7 @@ vfscanf(FILE *stream, const char *format, va_list arg) /* Check for long long parameters. */ if(parameter_size == parameter_size_long && c == 'l') { - parameter_size == parameter_size_long_long; + parameter_size = parameter_size_long_long; format++;