-
Notifications
You must be signed in to change notification settings - Fork 1
/
AIZERO.c,v
68 lines (53 loc) · 890 Bytes
/
AIZERO.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
head 1.2;
access;
symbols;
locks
saclib:1.2; strict;
comment @ * @;
1.2
date 2001.12.17.18.18.17; author George; state embe;
branches;
next 1.1;
1.1
date 2001.05.11.18.27.26; author saclib; state init;
branches;
next ;
desc
@Array integer zero.
@
1.2
log
@Fixed the header.
@
text
@/*========================================================================
t <- AIZERO(A)
Array integer zero.
Input
A : an integer in array representation.
Output
t : a BETA digit. t = 1 if A = 0; t = 0 otherwise.
========================================================================*/
#include "saclib.h"
BDigit AIZERO(A)
BDigit *A;
{
BDigit t;
Step1: /* Check the sign. */
if (A[0] == 0)
t = 1;
else
t = 0;
Return: /* Return t. */
return(t);
}
@
1.1
log
@Initial revision
@
text
@d2 1
a2 1
t = AIZERO(A)
@