2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997, 1998
|
|
|
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 |
AUTOMATICALLY GENERATED FROM ALGEBRA c_class (VERSION 1.1)
|
|
|
32 |
BY calculus (VERSION 1.2)
|
|
|
33 |
*/
|
|
|
34 |
|
|
|
35 |
#ifndef FLT_OPS_H_INCLUDED
|
|
|
36 |
#define FLT_OPS_H_INCLUDED
|
|
|
37 |
|
|
|
38 |
/* Operations for union FLOAT */
|
|
|
39 |
|
|
|
40 |
#define TAG_flt( P ) ( ( unsigned ) 0 )
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
/* Operations for component tok of union FLOAT */
|
|
|
44 |
|
|
|
45 |
#define flt_tok( P ) ( CHECK_NULL ( P ) + 0 )
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
/* Operations for field simple of union FLOAT */
|
|
|
49 |
|
|
|
50 |
#define flt_simple_tag ( ( unsigned ) 0 )
|
|
|
51 |
#define IS_flt_simple( P ) 1
|
|
|
52 |
|
|
|
53 |
#define flt_simple_int_part( P ) ( ( P ) + 1 )
|
|
|
54 |
#define flt_simple_frac_part( P ) ( ( P ) + 2 )
|
|
|
55 |
#define flt_simple_exponent( P ) ( ( P ) + 3 )
|
|
|
56 |
|
|
|
57 |
#define MAKE_flt_simple( int_part_, frac_part_, exponent_, c_class_flt )\
|
|
|
58 |
{\
|
|
|
59 |
c_class *x480_ = GEN_c_class ( 4, TYPEID_flt ) ;\
|
|
|
60 |
COPY_ulong ( x480_ + 0, LINK_NONE ) ;\
|
|
|
61 |
COPY_string ( x480_ + 1, ( int_part_ ) ) ;\
|
|
|
62 |
COPY_string ( x480_ + 2, ( frac_part_ ) ) ;\
|
|
|
63 |
COPY_nat ( x480_ + 3, ( exponent_ ) ) ;\
|
|
|
64 |
( c_class_flt ) = x480_ ;\
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
#define DECONS_flt_simple( tok_, int_part_, frac_part_, exponent_, c_class_flt )\
|
|
|
68 |
{\
|
|
|
69 |
c_class *x481_ = ( c_class_flt ) ;\
|
|
|
70 |
( tok_ ) = DEREF_ulong ( x481_ + 0 ) ;\
|
|
|
71 |
( int_part_ ) = DEREF_string ( x481_ + 1 ) ;\
|
|
|
72 |
( frac_part_ ) = DEREF_string ( x481_ + 2 ) ;\
|
|
|
73 |
( exponent_ ) = DEREF_nat ( x481_ + 3 ) ;\
|
|
|
74 |
}
|
|
|
75 |
|
|
|
76 |
#define DESTROY_flt_simple( destroyer_, tok_, int_part_, frac_part_, exponent_, c_class_flt )\
|
|
|
77 |
{\
|
|
|
78 |
c_class *x482_ = ( c_class_flt ) ;\
|
|
|
79 |
( tok_ ) = DEREF_ulong ( x482_ + 0 ) ;\
|
|
|
80 |
( int_part_ ) = DEREF_string ( x482_ + 1 ) ;\
|
|
|
81 |
( frac_part_ ) = DEREF_string ( x482_ + 2 ) ;\
|
|
|
82 |
( exponent_ ) = DEREF_nat ( x482_ + 3 ) ;\
|
|
|
83 |
( destroyer_ ) ( x482_, ( unsigned ) 4 ) ;\
|
|
|
84 |
}
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
#endif
|