/**************************************************************************/
/*                                                                        */
/*                                 Sources                                */
/*                                from  the                               */
/*                           XSC SOFTWARE PACKAGE                         */
/*                                                                        */
/*                Copyright (c) 1997 University of Karlsruhe              */
/*                     Institute for Appl. Mathematics                    */
/*                                                                        */
/* This program is free software for non-commercial use. For details, see */
/* the file LICENSE.XSC, distributed with this software package.          */
/*                                                                        */
/* This program is distributed WITHOUT ANY WARRANTY. For details, see the */
/* file LICENSE.XSC, distributed with this software package.              */
/*                                                                        */
/**************************************************************************/

/* RCS $Id: z_psub.c,v 1.2 1997/09/25 18:29:36 ae59 Exp $ */
/*
$Log: z_psub.c,v $
 * Revision 1.2  1997/09/25  18:29:36  ae59
 * Copyright-message
 *
 * Revision 1.1  1994/01/27  13:26:06  ae59
 * Put under RCS control
 *
 */
/****************************************************************/
/*                                                              */
/*      Filename        : z_psub.c                              */
/*                                                              */
/*      Entries         : void z_psub(crl,cil,cru,ciu,a,b)      */
/*                        dotprecision *crl,*cil,*cru,*ciu;     */
/*                        a_cinv a,b;                           */
/*                                                              */
/*      Arguments       : crl=dotprecision variable(real lower) */
/*                        cil=dotprecision variable(imag lower) */
/*                        cru=dotprecision variable(real upper) */
/*                        ciu=dotprecision variable(imag upper) */
/*                        a = complex interval value            */
/*                        b = complex interval value            */
/*                                                              */
/*      Description     : Add complex interval product to       */
/*                        dotprecision variable                 */
/*                        c = c+a*b                             */
/*                                                              */
/*      Date            : 1990-11-22                            */
/*      1990-11-22 : E_TPUSH+E_TPOPP                            */
/****************************************************************/

#ifndef ALL_IN_ONE
#ifdef AIX
#include "/u/p88c/runtime/o_defs.h"
#else
#include "o_defs.h"
#endif
#define local
#endif

#ifdef LINT_ARGS
local void z_psub(dotprecision *crl,dotprecision *cil,dotprecision *cru,
                  dotprecision *ciu,a_cinv a,a_cinv b)
#else
local void z_psub(crl,cil,cru,ciu,a,b)

dotprecision *crl;
dotprecision *cil;
dotprecision *cru;
dotprecision *ciu;
a_cinv a;
a_cinv b;
#endif
        {
        E_TPUSH("z_psub")

        i_psub(crl,cru,a.RE,b.RE);
        i_padd(crl,cru,a.IM,b.IM);
        i_psub(cil,ciu,a.RE,b.IM);
        i_psub(cil,ciu,a.IM,b.RE);

        E_TPOPP("z_psub")
        return;
        }

