OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [fixincludes/] [tests/] [base/] [internal/] [math_core.h] - Blame information for rev 724

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 724 jeremybenn
/*  DO NOT EDIT THIS FILE.
2
 
3
    It has been auto-edited by fixincludes from:
4
 
5
        "fixinc/tests/inc/internal/math_core.h"
6
 
7
    This had to be done to correct non-standard usages in the
8
    original, manufacturer supplied header file.  */
9
 
10
 
11
 
12
#if defined( IRIX___GENERIC1_CHECK )
13
extern int isnan(double);
14
extern int isnanf(float);
15
extern int isnanl(long double);
16
#define isnan(x) (sizeof(x) == sizeof(double) ? _isnan(x) \
17
               : sizeof(x) == sizeof(float) ? _isnanf(x) \
18
               : _isnanl(x))
19
 
20
 
21
#endif  /* IRIX___GENERIC1_CHECK */
22
 
23
 
24
#if defined( IRIX___GENERIC2_CHECK )
25
#define isless(x,y) \
26
  ((sizeof(x)<=4 && sizeof(y)<=4) ? _islessf(x,y) \
27
   : (sizeof(x)<=8 && sizeof(y)<=8) ? _isless(x,y) \
28
   : _islessl(x,y))
29
 
30
#endif  /* IRIX___GENERIC2_CHECK */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.