Changeset 1c666fc in rtems


Ignore:
Timestamp:
Apr 7, 1997, 9:31:39 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
de4f281
Parents:
9ffcaa4a
Message:

corrected integer only definitions of "FP CHECK" routines to eliminate
warnings.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/sptests/sp19/fptest.h

    r9ffcaa4a r1c666fc  
    3838#if ( RTEMS_HAS_HARDWARE_FP == FALSE )
    3939
    40 #define FP_DECLARE ;
    41 #define FP_LOAD( _factor )
    42 #define FP_CHECK( _factor ) 0
     40/*
     41 *  The following is useless except to avoid some warnings.
     42 */
     43
     44#define FP_DECLARE unsigned int fp01 = 0;
     45#define FP_LOAD( _factor ) fp01 = 2;
     46#define FP_CHECK( _factor ) \
     47   if ( fp01 != 2 ) \
     48          printf("%d: single integer is wrong -- (%d != 2) \n", \
     49             task_index, fp01 );  \
    4350
    4451#else
  • testsuites/sptests/sp19/fptest.h

    r9ffcaa4a r1c666fc  
    3838#if ( RTEMS_HAS_HARDWARE_FP == FALSE )
    3939
    40 #define FP_DECLARE ;
    41 #define FP_LOAD( _factor )
    42 #define FP_CHECK( _factor ) 0
     40/*
     41 *  The following is useless except to avoid some warnings.
     42 */
     43
     44#define FP_DECLARE unsigned int fp01 = 0;
     45#define FP_LOAD( _factor ) fp01 = 2;
     46#define FP_CHECK( _factor ) \
     47   if ( fp01 != 2 ) \
     48          printf("%d: single integer is wrong -- (%d != 2) \n", \
     49             task_index, fp01 );  \
    4350
    4451#else
Note: See TracChangeset for help on using the changeset viewer.