gtkIOStream
1.7.0
GTK+ << C++ IOStream operators for GTK+. Now with ORBing, numerical computation, audio client and more ...
pchst.c
Go to the documentation of this file.
1
/* pchst.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
10
http://www.netlib.org/f2c/libf2c.zip
11
*/
12
13
#include "f2c.h"
14
15
/* $Author: ulammers $ */
16
/* $Date: 1997/02/14 14:13:14 $ */
17
/* $Id: pchst.f,v 1.1 1997/02/14 14:13:14 ulammers Exp $ */
18
/* $Source: /usr4/users/aparmar/SAXDAS/pipeline/LE_lemat/RCS/pchst.f,v $ */
19
/* DECK PCHST */
20
doublereal
pchst_
(real *arg1, real *arg2)
21
{
22
/* Initialized data */
23
24
static
real zero = 0.f;
25
static
real one = 1.f;
26
27
/* System generated locals */
28
real ret_val;
29
30
/* Builtin functions */
31
double
r_sign(real *, real *);
32
33
/* ***BEGIN PROLOGUE PCHST */
34
/* ***SUBSIDIARY */
35
/* ***PURPOSE PCHIP Sign-Testing Routine */
36
/* ***LIBRARY SLATEC (PCHIP) */
37
/* ***TYPE SINGLE PRECISION (PCHST-S, DPCHST-D) */
38
/* ***AUTHOR Fritsch, F. N., (LLNL) */
39
/* ***DESCRIPTION */
40
41
/* PCHST: PCHIP Sign-Testing Routine. */
42
43
/* returns: */
44
/* -1. if ARG1 and ARG2 are of opposite sign. */
45
/* 0. if either argument is zero. */
46
/* +1. if ARG1 and ARG2 are of the same sign. */
47
48
/* The object is to do this without multiplying ARG1*ARG2, to avoid */
49
/* possible over/underflow problems. */
50
51
/* Fortran intrinsics used: SIGN. */
52
53
/* ***SEE ALSO PCHCE, PCHCI, PCHCS, PCHIM */
54
/* ***ROUTINES CALLED (NONE) */
55
/* ***REVISION HISTORY (YYMMDD) */
56
/* 811103 DATE WRITTEN */
57
/* 820805 Converted to SLATEC library version. */
58
/* 870813 Minor cosmetic changes. */
59
/* 890411 Added SAVE statements (Vers. 3.2). */
60
/* 890411 REVISION DATE from Version 3.2 */
61
/* 891214 Prologue converted to Version 4.0 format. (BAB) */
62
/* 900328 Added TYPE section. (WRB) */
63
/* 910408 Updated AUTHOR and DATE WRITTEN sections in prologue. (WRB) */
64
/* 930503 Improved purpose. (FNF) */
65
/* ***END PROLOGUE PCHST */
66
67
/* **End */
68
69
/* DECLARE ARGUMENTS. */
70
71
72
/* DECLARE LOCAL VARIABLES. */
73
74
75
/* PERFORM THE TEST. */
76
77
/* ***FIRST EXECUTABLE STATEMENT PCHST */
78
ret_val = r_sign(&one, arg1) * r_sign(&one, arg2);
79
if
(*arg1 == zero || *arg2 == zero) {
80
ret_val = zero;
81
}
82
83
return
ret_val;
84
/* ------------- LAST LINE OF PCHST FOLLOWS ------------------------------ */
85
}
/* pchst_ */
86
pchst_
doublereal pchst_(real *arg1, real *arg2)
Definition:
pchst.c:20
gtkIOStream: /tmp/gtkiostream/futureInclusions/cubicInterp/pchst.c Source File
Support this project by purchasing our hardware.
GTK+ IOStream
Beta