dlaisnan.c 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* dlaisnan.f -- translated by f2c (version 20061008).
  2. You must link the resulting object file with libf2c:
  3. on Microsoft Windows system, link with libf2c.lib;
  4. on Linux or Unix systems, link with .../path/to/libf2c.a -lm
  5. or, if you install libf2c.a in a standard place, with -lf2c -lm
  6. -- in that order, at the end of the command line, as in
  7. cc *.o -lf2c -lm
  8. Source for libf2c is in /netlib/f2c/libf2c.zip, e.g.,
  9. http://www.netlib.org/f2c/libf2c.zip
  10. */
  11. #include "f2c.h"
  12. #include "blaswrap.h"
  13. logical _starpu_dlaisnan_(doublereal *din1, doublereal *din2)
  14. {
  15. /* System generated locals */
  16. logical ret_val;
  17. /* -- LAPACK auxiliary routine (version 3.2) -- */
  18. /* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
  19. /* November 2006 */
  20. /* .. Scalar Arguments .. */
  21. /* .. */
  22. /* Purpose */
  23. /* ======= */
  24. /* This routine is not for general use. It exists solely to avoid */
  25. /* over-optimization in DISNAN. */
  26. /* DLAISNAN checks for NaNs by comparing its two arguments for */
  27. /* inequality. NaN is the only floating-point value where NaN != NaN */
  28. /* returns .TRUE. To check for NaNs, pass the same variable as both */
  29. /* arguments. */
  30. /* A compiler must assume that the two arguments are */
  31. /* not the same variable, and the test will not be optimized away. */
  32. /* Interprocedural or whole-program optimization may delete this */
  33. /* test. The ISNAN functions will be replaced by the correct */
  34. /* Fortran 03 intrinsic once the intrinsic is widely available. */
  35. /* Arguments */
  36. /* ========= */
  37. /* DIN1 (input) DOUBLE PRECISION */
  38. /* DIN2 (input) DOUBLE PRECISION */
  39. /* Two numbers to compare for inequality. */
  40. /* ===================================================================== */
  41. /* .. Executable Statements .. */
  42. ret_val = *din1 != *din2;
  43. return ret_val;
  44. } /* _starpu_dlaisnan_ */