Changeset 392 for trunk/ADOL-C/include


Ignore:
Timestamp:
Jan 28, 2013 10:19:28 AM (7 years ago)
Author:
kulshres
Message:

Visual studio doesn't have trunc()

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

File:
1 edited

Legend:

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

    r375 r392  
    7373#       endif /* ADOLC_NO_REALLOC */
    7474
     75#       ifndef HAVE_TRUNC
     76#           define trunc(x) ( (x<0) ? ceil(x) : floor(x) )
     77#       endif
     78
    7579#   endif /* HAVE_CONFIG_H */
    7680#endif /* ADOLC_INTERNAL */
Note: See TracChangeset for help on using the changeset viewer.