-
Notifications
You must be signed in to change notification settings - Fork 1
/
SISUM.c,v
54 lines (42 loc) · 861 Bytes
/
SISUM.c,v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
head 1.1;
access;
symbols;
locks
saclib:1.1; strict;
comment @ * @;
1.1
date 2000.01.02.20.50.13; author George; state init;
branches;
next ;
desc
@Software interval sum.
@
1.1
log
@Initial revision
@
text
@/*======================================================================
SISUM(I,J,K)
Software interval sum.
Inputs
I, J : software intervals of the same precision, p.
K : an array of size (at least) p + 3.
Effect
The smallest p-precision software interval containing I + J
is computed and stored in K.
======================================================================*/
#include "floats.h"
void SISUM(I,J,K)
BDigit *I,*J,*K;
{
BDigit p,q;
Step1: /* Add corresponding endpoints. */
p = I[2];
q = p + 3;
FSUM(I,J,-1,K);
FSUM(I + q,J + q,+1,K + q);
Return: /* Return. */
return;
}
@