Changeset e1462e1 in rtems


Ignore:
Timestamp:
Sep 2, 2014, 5:30:25 PM (6 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 5, master
Children:
2dd1e75e
Parents:
ce134f74
git-author:
Joel Sherrill <joel.sherrill@…> (09/02/14 17:30:25)
git-committer:
Joel Sherrill <joel.sherrill@…> (09/04/14 14:08:05)
Message:

sp19: Eliminate warnings

Location:
testsuites/sptests/sp19
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sp19/fptask.c

    rce134f74 re1462e1  
    4242  );
    4343  put_name( Task_name[ task_index ], FALSE );
    44   #if ( RTEMS_HAS_HARDWARE_FP == 1 )
    45     printf( " - float base = (%g)\n", FP_factors[ task_index ] );
    46   #else
    47     printf( " - float base = (NA)\n" );
    48   #endif
     44  printf( " - float base = (%g)\n", FP_factors[ task_index ] );
    4945
    5046  previous_seconds = (uint32_t)-1;
  • testsuites/sptests/sp19/fptest.h

    rce134f74 re1462e1  
    1 /*  fptest.h
     1/**
     2 * @file
     3 * @brief Floating Point Register Pressure and Check
    24 *
    3  *  This include file contains the CPU dependent implementation
    4  *  of the following routines needed to test RTEMS floating
    5  *  point support:
    6  *           FP_load( &context )
    7  *           FP_check( &context )
     5 * This include file contains the implementation of the following
     6 * routines needed to test RTEMS floating point support:
    87 *
    9  *  FP_load   - loads the specified floating point context
    10  *  FP_check  - checks the specified floating point context
     8 *    FP_load( &context )
     9 *    FP_check( &context )
    1110 *
    12  *  NOTE:  These routines are VERY CPU dependent and are thus
    13  *         located in in the CPU dependent include file
    14  *         fptest.h.  These routines form the core of the
    15  *         floating point context switch test.
     11 * FP_load   - loads the specified floating point context
     12 * FP_check  - checks the specified floating point context
    1613 *
    17  *  COPYRIGHT (c) 1989-1999.
     14 * Whether the CPU model has hardware or software floating point,
     15 * these methods should put load on the floating point register set.
     16 */
     17
     18/*
     19 *  COPYRIGHT (c) 1989-2014.
    1820 *  On-Line Applications Research Corporation (OAR).
    1921 *
     
    2830
    2931#include <stdio.h>
    30 
    31 #ifndef RTEMS_HAS_HARDWARE_FP
    32 #error "This CPU does not have RTEMS_HAS_HARDWARE_FP defined"
    33 #endif
    34 
    35 #if ( RTEMS_HAS_HARDWARE_FP == FALSE )
    36 
    37 /*
    38  *  The following is useless except to avoid some warnings.
    39  */
    40 
    41 #define FP_DECLARE unsigned int fp01 = 0;
    42 #define FP_LOAD( _factor ) fp01 = 2;
    43 #define FP_CHECK( _factor ) \
    44    if ( fp01 != 2 ) \
    45           printf("%" PRIu32 ": single integer is wrong -- (%d != 2) \n", \
    46              task_index, fp01 );  \
    47 
    48 #else
    4932
    5033#define FP_DECLARE \
     
    166149
    167150#endif
    168 
    169 #endif
Note: See TracChangeset for help on using the changeset viewer.