Changeset 509 for trunk/ADOL-C/include


Ignore:
Timestamp:
May 14, 2014 9:00:45 AM (5 years ago)
Author:
kulshres
Message:

register keyword has been deprecated

so don't use it. The compiler probably will optimise out the variable
anyway for -On n>=1.

Signed-off-by: Kshitij Kulshreshtha <kshitij@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ADOL-C/include/adolc/common.h

    r439 r509  
    103103#endif
    104104
    105 #define MAXDEC(a,b) do { register revreal __r = (b); if ( __r > (a) ) (a) = __r; } while (0)
    106 #define MAXDECI(a,b) do { register int __r = (b); if ( __r > (a) ) (a) = __r; } while (0)
    107 #define MINDECR(a,b) do { register revreal __r = (b); if ( __r < (a) ) (a) = __r; } while (0)
    108 #define MINDEC(a,b) do { register int __r = (b); if ( __r < (a) ) (a) = __r; } while (0)
     105#define MAXDEC(a,b) do { revreal __r = (b); if ( __r > (a) ) (a) = __r; } while (0)
     106#define MAXDECI(a,b) do { int __r = (b); if ( __r > (a) ) (a) = __r; } while (0)
     107#define MINDECR(a,b) do { revreal __r = (b); if ( __r < (a) ) (a) = __r; } while (0)
     108#define MINDEC(a,b) do { int __r = (b); if ( __r < (a) ) (a) = __r; } while (0)
    109109
    110110#define MAX_ADOLC(a,b) ( (a)<(b)? (b):(a) )
Note: See TracChangeset for help on using the changeset viewer.