Attachment 'tao_ss12hpc.diff'

Download

   1 diff -ru a/include/tao_sys.h b/include/tao_sys.h
   2 --- a/include/tao_sys.h	2007-06-26 21:21:20.000000000 +0200
   3 +++ b/include/tao_sys.h	2009-10-01 15:10:09.883728693 +0200
   4 @@ -45,6 +45,19 @@
   5  
   6  #else
   7  
   8 +// Sun Studio 12 C++ seems not to have ``isinf``.
   9 +// Test taken from Sun Solaris 10 ``/usr/include/math.h``.
  10 +#if !defined(_STDC_C99) && _XOPEN_SOURCE - 0 < 600 && !defined(__C99FEATURES__)
  11 +
  12 +// From above:
  13 +// This test works because Inf - Inf = NaN, NaN - NaN = NaN,
  14 +// and NaN is not equal to anything else.
  15 +#define TaoNaN(a)        ((a) != (a))
  16 +#define TaoInf(a)       (((a) == (a)) && ((a) - (a)) != 0.0)
  17 +#define TaoInfOrNaN(a)                  (((a) - (a)) != 0.0)
  18 +
  19 +#else
  20 +
  21  // These tests are from ISO C99
  22  #define TaoNaN(a)        isnan(a)
  23  #define TaoInf(a)        isinf(a)
  24 @@ -52,6 +65,8 @@
  25  
  26  #endif
  27  
  28 +#endif
  29 +
  30  #define TAO_DEFAULT        -13456834
  31  #define TAO_INFINITY        1.0e20
  32  #define TAO_NINFINITY       -1.0e20

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2009-10-01 18:17:24, 1.5 KB) [[attachment:petsc_ss12hpc.diff]]
  • [get | view] (2009-10-01 18:17:46, 4.4 KB) [[attachment:src_ss12hpc.diff]]
  • [get | view] (2009-10-01 18:17:09, 0.3 KB) [[attachment:sundials_ss12hpc.diff]]
  • [get | view] (2009-10-01 18:17:30, 0.9 KB) [[attachment:tao_ss12hpc.diff]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.


Copyright (C) Werner Scholz 2010