r1883
dslinux_amadeus at dslinux.in-berlin.de
dslinux_amadeus at dslinux.in-berlin.de
Fri Sep 14 00:21:28 CEST 2007
Author: amadeus
Date: 2007-09-14 00:21:23 +0200 (Fri, 14 Sep 2007)
New Revision: 1883
Log:
Some cosmetic changes on a non-active math library
Modified: trunk/lib/libm/atan.c
===================================================================
--- trunk/lib/libm/atan.c 2007-09-13 22:17:46 UTC (rev 1882)
+++ trunk/lib/libm/atan.c 2007-09-13 22:21:23 UTC (rev 1883)
@@ -348,7 +348,7 @@
{
if( code & 1 )
{
-#if ANSIC
+#ifdef ANSIC
return( -PIO2 );
#else
return( 3.0*PIO2 );
@@ -369,7 +369,7 @@
switch( code )
{
-#if ANSIC
+#ifdef ANSIC
default:
case 0:
case 1: w = 0.0; break;
Modified: trunk/lib/libm/atanf.c
===================================================================
--- trunk/lib/libm/atanf.c 2007-09-13 22:17:46 UTC (rev 1882)
+++ trunk/lib/libm/atanf.c 2007-09-13 22:21:23 UTC (rev 1883)
@@ -136,7 +136,7 @@
-#if ANSIC
+#ifdef ANSIC
float atan2f( float y, float x )
#else
float atan2f( x, y )
@@ -158,7 +158,7 @@
{
if( code & 1 )
{
-#if ANSIC
+#ifdef ANSIC
return( -PIO2F );
#else
return( 3.0*PIO2F );
@@ -180,7 +180,7 @@
switch( code )
{
default:
-#if ANSIC
+#ifdef ANSIC
case 0:
case 1: w = 0.0; break;
case 2: w = PIF; break;
Modified: trunk/lib/libm/clog.c
===================================================================
--- trunk/lib/libm/clog.c 2007-09-13 22:17:46 UTC (rev 1882)
+++ trunk/lib/libm/clog.c 2007-09-13 22:21:23 UTC (rev 1883)
@@ -91,7 +91,7 @@
/*rr = sqrt( z->r * z->r + z->i * z->i );*/
rr = cabs(z);
p = log(rr);
-#if ANSIC
+#ifdef ANSIC
rr = atan2( z->i, z->r );
#else
rr = atan2( z->r, z->i );
@@ -710,7 +710,7 @@
if( a == 0.0 )
goto ovrf;
-#if ANSIC
+#ifdef ANSIC
t = atan2( 2.0 * x, a )/2.0;
#else
t = atan2( a, 2.0 * x )/2.0;
Modified: trunk/lib/libm/clogf.c
===================================================================
--- trunk/lib/libm/clogf.c 2007-09-13 22:17:46 UTC (rev 1882)
+++ trunk/lib/libm/clogf.c 2007-09-13 22:21:23 UTC (rev 1883)
@@ -64,7 +64,7 @@
/*rr = sqrtf( z->r * z->r + z->i * z->i );*/
rr = cabsf(z);
p = logf(rr);
-#if ANSIC
+#ifdef ANSIC
rr = atan2f( z->i, z->r );
#else
rr = atan2f( z->r, z->i );
@@ -656,7 +656,7 @@
if( a == 0.0f )
goto ovrf;
-#if ANSIC
+#ifdef ANSIC
t = 0.5f * atan2f( 2.0f * x, a );
#else
t = 0.5f * atan2f( a, 2.0f * x );
Modified: trunk/lib/libm/fresnlf.c
===================================================================
--- trunk/lib/libm/fresnlf.c 2007-09-13 22:17:46 UTC (rev 1882)
+++ trunk/lib/libm/fresnlf.c 2007-09-13 22:21:23 UTC (rev 1883)
@@ -174,7 +174,7 @@
*cca = cc;
*ssa = ss;
-#if !ANSIC
+#ifndef ANSIC
return 0;
#endif
}
Modified: trunk/lib/libm/logf.c
===================================================================
--- trunk/lib/libm/logf.c 2007-09-13 22:17:46 UTC (rev 1882)
+++ trunk/lib/libm/logf.c 2007-09-13 22:21:23 UTC (rev 1883)
@@ -58,7 +58,7 @@
extern float MINLOGF, SQRTHF;
-#if ANSIC
+#ifdef ANSIC
float frexpf( float, int * );
float logf( float xx )
Modified: trunk/lib/libm/mconf.h
===================================================================
--- trunk/lib/libm/mconf.h 2007-09-13 22:17:46 UTC (rev 1882)
+++ trunk/lib/libm/mconf.h 2007-09-13 22:21:23 UTC (rev 1883)
@@ -76,10 +76,10 @@
/* Define if your processor stores words with the most significant
byte first (like Motorola and SPARC, unlike Intel and VAX). */
-#define WORDS_BIGENDIAN
+#undef WORDS_BIGENDIAN
/* Define if floating point words are bigendian. */
-#define FLOAT_WORDS_BIGENDIAN
+#undef FLOAT_WORDS_BIGENDIAN
/* The number of bytes in a int. */
#define SIZEOF_INT 4
Modified: trunk/lib/libm/mtst.c
===================================================================
--- trunk/lib/libm/mtst.c 2007-09-13 22:17:46 UTC (rev 1882)
+++ trunk/lib/libm/mtst.c 2007-09-13 22:21:23 UTC (rev 1883)
@@ -78,13 +78,13 @@
struct oneargument
{
char *nam1; /* the function */
-#if ANSIC
+#ifdef ANSIC
float (*name) (float);
#else
float (*name) ();
#endif
char *nam2; /* its inverse */
-#if ANSIC
+#ifdef ANSIC
float (*inv )(float);
#else
float (*inv )();
@@ -99,13 +99,13 @@
struct twoarguments
{
char *nam1; /* the function */
-#if ANSIC
+#ifdef ANSIC
float (*name) (float, float);
#else
float (*name) ();
#endif
char *nam2; /* its inverse */
-#if ANSIC
+#ifdef ANSIC
float (*inv )(float, float);
#else
float (*inv )();
@@ -193,7 +193,7 @@
int main()
{
-#if ANSIC
+#ifdef ANSIC
float (*fun1 )(float);
float (*ifun1 )(float);
float (*fun2 )(float, float);
More information about the dslinux-commit
mailing list