2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997
|
|
|
3 |
|
|
|
4 |
This TenDRA(r) Computer Program is subject to Copyright
|
|
|
5 |
owned by the United Kingdom Secretary of State for Defence
|
|
|
6 |
acting through the Defence Evaluation and Research Agency
|
|
|
7 |
(DERA). It is made available to Recipients with a
|
|
|
8 |
royalty-free licence for its use, reproduction, transfer
|
|
|
9 |
to other parties and amendment for any purpose not excluding
|
|
|
10 |
product development provided that any such use et cetera
|
|
|
11 |
shall be deemed to be acceptance of the following conditions:-
|
|
|
12 |
|
|
|
13 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
14 |
reproduced upon any copies or amended versions of it;
|
|
|
15 |
|
|
|
16 |
(2) Any amended version of it shall be clearly marked to
|
|
|
17 |
show both the nature of and the organisation responsible
|
|
|
18 |
for the relevant amendment or amendments;
|
|
|
19 |
|
|
|
20 |
(3) Its onward transfer from a recipient to another
|
|
|
21 |
party shall be deemed to be that party's acceptance of
|
|
|
22 |
these conditions;
|
|
|
23 |
|
|
|
24 |
(4) DERA gives no warranty or assurance as to its
|
|
|
25 |
quality or suitability for any purpose and DERA accepts
|
|
|
26 |
no liability whatsoever in relation to any use to which
|
|
|
27 |
it may be put.
|
|
|
28 |
*/
|
|
|
29 |
|
|
|
30 |
|
|
|
31 |
/*
|
|
|
32 |
** abstract.ph
|
|
|
33 |
**
|
|
|
34 |
** This file contains PL_TDF token declarations which
|
|
|
35 |
** act as the interface to the tokens defined in the
|
|
|
36 |
** file abstract.pl.
|
|
|
37 |
*/
|
|
|
38 |
|
|
|
39 |
|
|
|
40 |
/* Define the generic 32-bit signed and unsigned types */
|
|
|
41 |
|
|
|
42 |
Tokdec ~INT32 : [] VARIETY;
|
|
|
43 |
Tokdec INT32 : [] SHAPE;
|
|
|
44 |
Tokdec ~UINT32 : [] VARIETY;
|
|
|
45 |
Tokdec UINT32 : [] SHAPE;
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
/* Define the new types for 64-bit integers */
|
|
|
49 |
|
|
|
50 |
Tokdec INT64 : [] SHAPE;
|
|
|
51 |
Tokdec UINT64 : [] SHAPE;
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
/* Define the widest floating variety - not possible in C */
|
|
|
55 |
|
|
|
56 |
Tokdec ~BigFloat : [] FLOATING_VARIETY;
|
|
|
57 |
Tokdec BigFloat : [] SHAPE;
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
/* Macros for extracting the high- and low-32 bits */
|
|
|
62 |
/* (These necessarily differ from the C equivalents) */
|
|
|
63 |
|
|
|
64 |
Tokdec TDF_INT64 : [] SHAPE;
|
|
|
65 |
|
|
|
66 |
Tokdec hi_32 : [EXP] EXP;
|
|
|
67 |
Tokdec lo_32 : [EXP] EXP;
|
|
|
68 |
|
|
|
69 |
Tokdec hi_u32 : [EXP] EXP;
|
|
|
70 |
Tokdec lo_u32 : [EXP] EXP;
|
|
|
71 |
|
|
|
72 |
Tokdec .hi_32 : [] EXP;
|
|
|
73 |
Tokdec .lo_32 : [] EXP;
|
|
|
74 |
|
|
|
75 |
Tokdec .hi_u32 : [] EXP;
|
|
|
76 |
Tokdec .lo_u32 : [] EXP;
|
|
|
77 |
|
|
|
78 |
Tokdec PARAM : [EXP] EXP;
|
|
|
79 |
Tokdec UPARAM : [EXP] EXP;
|
|
|
80 |
|
|
|
81 |
Tokdec .PARAM : [] EXP;
|
|
|
82 |
Tokdec .UPARAM : [] EXP;
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
/* 64-bit constants used in the implementation */
|
|
|
87 |
|
|
|
88 |
Tokdec const_0 : [] EXP;
|
|
|
89 |
Tokdec const_u0 : [] EXP;
|
|
|
90 |
Tokdec const_1 : [] EXP;
|
|
|
91 |
Tokdec const_u1 : [] EXP;
|