00001 /* slaisnan.f -- translated by f2c (version 20061008). 00002 You must link the resulting object file with libf2c: 00003 on Microsoft Windows system, link with libf2c.lib; 00004 on Linux or Unix systems, link with .../path/to/libf2c.a -lm 00005 or, if you install libf2c.a in a standard place, with -lf2c -lm 00006 -- in that order, at the end of the command line, as in 00007 cc *.o -lf2c -lm 00008 Source for libf2c is in /netlib/f2c/libf2c.zip, e.g., 00009 00010 http://www.netlib.org/f2c/libf2c.zip 00011 */ 00012 00013 #include "f2c.h" 00014 #include "blaswrap.h" 00015 00016 logical slaisnan_(real *sin1, real *sin2) 00017 { 00018 /* System generated locals */ 00019 logical ret_val; 00020 00021 00022 /* -- LAPACK auxiliary routine (version 3.2) -- */ 00023 /* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */ 00024 /* November 2006 */ 00025 00026 /* .. Scalar Arguments .. */ 00027 /* .. */ 00028 00029 /* Purpose */ 00030 /* ======= */ 00031 00032 /* This routine is not for general use. It exists solely to avoid */ 00033 /* over-optimization in SISNAN. */ 00034 00035 /* SLAISNAN checks for NaNs by comparing its two arguments for */ 00036 /* inequality. NaN is the only floating-point value where NaN != NaN */ 00037 /* returns .TRUE. To check for NaNs, pass the same variable as both */ 00038 /* arguments. */ 00039 00040 /* A compiler must assume that the two arguments are */ 00041 /* not the same variable, and the test will not be optimized away. */ 00042 /* Interprocedural or whole-program optimization may delete this */ 00043 /* test. The ISNAN functions will be replaced by the correct */ 00044 /* Fortran 03 intrinsic once the intrinsic is widely available. */ 00045 00046 /* Arguments */ 00047 /* ========= */ 00048 00049 /* SIN1 (input) REAL */ 00050 /* SIN2 (input) REAL */ 00051 /* Two numbers to compare for inequality. */ 00052 00053 /* ===================================================================== */ 00054 00055 /* .. Executable Statements .. */ 00056 ret_val = *sin1 != *sin2; 00057 return ret_val; 00058 } /* slaisnan_ */