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
|
#include "pdefs.h"
static precisionType pzeroConst = {
#ifndef BWGC
(short) 1, /* refcount (read/write!) */
#endif
(posit) 1, /* size */
(posit) 1, /* digitcount */
(boolean) 0, /* sign */
{ (digit) 0 } /* value */
};
static precisionType poneConst = {
#ifndef BWGC
(short) 1, /* refcount (read/write!) */
#endif
(posit) 1, /* size */
(posit) 1, /* digitcount */
(boolean) 0, /* sign */
{ (digit) 1 } /* value */
};
static precisionType ptwoConst = {
#ifndef BWGC
(short) 1, /* refcount (read/write!) */
#endif
(posit) 1, /* size */
(posit) 1, /* digitcount */
(boolean) 0, /* sign */
{ (digit) 2 } /* value */
};
static precisionType p_oneConst = {
#ifndef BWGC
(short) 1, /* refcount (read/write!) */
#endif
(posit) 1, /* size */
(posit) 1, /* digitcount */
(boolean) 1, /* sign */
{ (digit) 1 } /* value */
};
precision pzero = &pzeroConst; /* zero */
precision pone = &poneConst; /* one */
precision ptwo = &ptwoConst; /* two */
precision p_one = &p_oneConst; /* negative one */
|