blob: 2858cc37d3ca8212951f5626da5479d4783d6c2e [file] [log] [blame]
Lev Walkin026e21a2017-10-04 00:49:01 -07001
2/*** <<< INCLUDES [UnconstrainedREAL] >>> ***/
3
4#include <NativeReal.h>
5
6/*** <<< TYPE-DECLS [UnconstrainedREAL] >>> ***/
7
8typedef double UnconstrainedREAL_t;
9
10/*** <<< FUNC-DECLS [UnconstrainedREAL] >>> ***/
11
12extern asn_TYPE_descriptor_t asn_DEF_UnconstrainedREAL;
13asn_struct_free_f UnconstrainedREAL_free;
14asn_struct_print_f UnconstrainedREAL_print;
15asn_constr_check_f UnconstrainedREAL_constraint;
16ber_type_decoder_f UnconstrainedREAL_decode_ber;
17der_type_encoder_f UnconstrainedREAL_encode_der;
18xer_type_decoder_f UnconstrainedREAL_decode_xer;
19xer_type_encoder_f UnconstrainedREAL_encode_xer;
20per_type_decoder_f UnconstrainedREAL_decode_uper;
21per_type_encoder_f UnconstrainedREAL_encode_uper;
22
23/*** <<< CODE [UnconstrainedREAL] >>> ***/
24
25/*
26 * This type is implemented using NativeReal,
27 * so here we adjust the DEF accordingly.
28 */
29
30/*** <<< STAT-DEFS [UnconstrainedREAL] >>> ***/
31
32static const ber_tlv_tag_t asn_DEF_UnconstrainedREAL_tags_1[] = {
33 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
34};
35asn_TYPE_descriptor_t asn_DEF_UnconstrainedREAL = {
36 "UnconstrainedREAL",
37 "UnconstrainedREAL",
38 &asn_OP_NativeReal,
39 asn_DEF_UnconstrainedREAL_tags_1,
40 sizeof(asn_DEF_UnconstrainedREAL_tags_1)
41 /sizeof(asn_DEF_UnconstrainedREAL_tags_1[0]), /* 1 */
42 asn_DEF_UnconstrainedREAL_tags_1, /* Same as above */
43 sizeof(asn_DEF_UnconstrainedREAL_tags_1)
44 /sizeof(asn_DEF_UnconstrainedREAL_tags_1[0]), /* 1 */
45 { 0, 0, NativeReal_constraint },
46 0, 0, /* No members */
47 0 /* No specifics */
48};
49
50
51/*** <<< INCLUDES [WeirdlyConstrainedREAL] >>> ***/
52
53#include <NativeReal.h>
54
55/*** <<< TYPE-DECLS [WeirdlyConstrainedREAL] >>> ***/
56
57typedef double WeirdlyConstrainedREAL_t;
58
59/*** <<< FUNC-DECLS [WeirdlyConstrainedREAL] >>> ***/
60
61extern asn_TYPE_descriptor_t asn_DEF_WeirdlyConstrainedREAL;
62asn_struct_free_f WeirdlyConstrainedREAL_free;
63asn_struct_print_f WeirdlyConstrainedREAL_print;
64asn_constr_check_f WeirdlyConstrainedREAL_constraint;
65ber_type_decoder_f WeirdlyConstrainedREAL_decode_ber;
66der_type_encoder_f WeirdlyConstrainedREAL_encode_der;
67xer_type_decoder_f WeirdlyConstrainedREAL_decode_xer;
68xer_type_encoder_f WeirdlyConstrainedREAL_encode_xer;
69per_type_decoder_f WeirdlyConstrainedREAL_decode_uper;
70per_type_encoder_f WeirdlyConstrainedREAL_encode_uper;
71
72/*** <<< CODE [WeirdlyConstrainedREAL] >>> ***/
73
74int
Lev Walkin20696a42017-10-17 21:27:33 -070075WeirdlyConstrainedREAL_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin026e21a2017-10-04 00:49:01 -070076 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
77 double value;
78
79 if(!sptr) {
80 ASN__CTFAIL(app_key, td, sptr,
81 "%s: value not given (%s:%d)",
82 td->name, __FILE__, __LINE__);
83 return -1;
84 }
85
86 value = *(const double *)sptr;
87
88 if((value == 3)) {
89 /* Constraint check succeeded */
90 return 0;
91 } else {
92 ASN__CTFAIL(app_key, td, sptr,
93 "%s: constraint failed (%s:%d)",
94 td->name, __FILE__, __LINE__);
95 return -1;
96 }
97}
98
99/*
100 * This type is implemented using NativeReal,
101 * so here we adjust the DEF accordingly.
102 */
103
104/*** <<< CTDEFS [WeirdlyConstrainedREAL] >>> ***/
105
106static asn_per_constraints_t asn_PER_type_WeirdlyConstrainedREAL_constr_1 CC_NOTUSED = {
107 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
108 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
109 0, 0 /* No PER value map */
110};
111
112/*** <<< STAT-DEFS [WeirdlyConstrainedREAL] >>> ***/
113
114static const ber_tlv_tag_t asn_DEF_WeirdlyConstrainedREAL_tags_1[] = {
115 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
116};
117asn_TYPE_descriptor_t asn_DEF_WeirdlyConstrainedREAL = {
118 "WeirdlyConstrainedREAL",
119 "WeirdlyConstrainedREAL",
120 &asn_OP_NativeReal,
121 asn_DEF_WeirdlyConstrainedREAL_tags_1,
122 sizeof(asn_DEF_WeirdlyConstrainedREAL_tags_1)
123 /sizeof(asn_DEF_WeirdlyConstrainedREAL_tags_1[0]), /* 1 */
124 asn_DEF_WeirdlyConstrainedREAL_tags_1, /* Same as above */
125 sizeof(asn_DEF_WeirdlyConstrainedREAL_tags_1)
126 /sizeof(asn_DEF_WeirdlyConstrainedREAL_tags_1[0]), /* 1 */
127 { 0, &asn_PER_type_WeirdlyConstrainedREAL_constr_1, WeirdlyConstrainedREAL_constraint },
128 0, 0, /* No members */
129 0 /* No specifics */
130};
131
132
Lev Walkinb5450702017-10-04 02:52:57 -0700133/*** <<< INCLUDES [Indirect-IEEE-binary32] >>> ***/
134
135#include "UnconstrainedREAL.h"
136
137/*** <<< TYPE-DECLS [Indirect-IEEE-binary32] >>> ***/
138
139typedef UnconstrainedREAL_t Indirect_IEEE_binary32_t;
140
141/*** <<< FUNC-DECLS [Indirect-IEEE-binary32] >>> ***/
142
143extern asn_per_constraints_t asn_PER_type_Indirect_IEEE_binary32_constr_1;
144extern asn_TYPE_descriptor_t asn_DEF_Indirect_IEEE_binary32;
145extern const asn_NativeReal_specifics_t asn_SPC_Indirect_IEEE_binary32_specs_1;
146asn_struct_free_f Indirect_IEEE_binary32_free;
147asn_struct_print_f Indirect_IEEE_binary32_print;
148asn_constr_check_f Indirect_IEEE_binary32_constraint;
149ber_type_decoder_f Indirect_IEEE_binary32_decode_ber;
150der_type_encoder_f Indirect_IEEE_binary32_encode_der;
151xer_type_decoder_f Indirect_IEEE_binary32_decode_xer;
152xer_type_encoder_f Indirect_IEEE_binary32_encode_xer;
153per_type_decoder_f Indirect_IEEE_binary32_decode_uper;
154per_type_encoder_f Indirect_IEEE_binary32_encode_uper;
155
156/*** <<< CODE [Indirect-IEEE-binary32] >>> ***/
157
158int
Lev Walkin20696a42017-10-17 21:27:33 -0700159Indirect_IEEE_binary32_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkinb5450702017-10-04 02:52:57 -0700160 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
161
162 if(!sptr) {
163 ASN__CTFAIL(app_key, td, sptr,
164 "%s: value not given (%s:%d)",
165 td->name, __FILE__, __LINE__);
166 return -1;
167 }
168
169
170 if(1 /* No applicable constraints whatsoever */) {
171 /* Nothing is here. See below */
172 }
173
174 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
175}
176
177/*
178 * This type is implemented using UnconstrainedREAL,
179 * so here we adjust the DEF accordingly.
180 */
181
182/*** <<< CTDEFS [Indirect-IEEE-binary32] >>> ***/
183
184asn_per_constraints_t asn_PER_type_Indirect_IEEE_binary32_constr_1 CC_NOTUSED = {
185 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
186 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
187 0, 0 /* No PER value map */
188};
189
190/*** <<< STAT-DEFS [Indirect-IEEE-binary32] >>> ***/
191
192const asn_NativeReal_specifics_t asn_SPC_Indirect_IEEE_binary32_specs_1 = {
193 4 /* Use 'float' type. */
194};
195static const ber_tlv_tag_t asn_DEF_Indirect_IEEE_binary32_tags_1[] = {
196 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
197};
198asn_TYPE_descriptor_t asn_DEF_Indirect_IEEE_binary32 = {
199 "Indirect-IEEE-binary32",
200 "Indirect-IEEE-binary32",
201 &asn_OP_NativeReal,
202 asn_DEF_Indirect_IEEE_binary32_tags_1,
203 sizeof(asn_DEF_Indirect_IEEE_binary32_tags_1)
204 /sizeof(asn_DEF_Indirect_IEEE_binary32_tags_1[0]), /* 1 */
205 asn_DEF_Indirect_IEEE_binary32_tags_1, /* Same as above */
206 sizeof(asn_DEF_Indirect_IEEE_binary32_tags_1)
207 /sizeof(asn_DEF_Indirect_IEEE_binary32_tags_1[0]), /* 1 */
208 { 0, &asn_PER_type_Indirect_IEEE_binary32_constr_1, Indirect_IEEE_binary32_constraint },
209 0, 0, /* No members */
210 &asn_SPC_Indirect_IEEE_binary32_specs_1 /* Additional specs */
211};
212
213
Lev Walkin026e21a2017-10-04 00:49:01 -0700214/*** <<< INCLUDES [IEEE-binary32-w] >>> ***/
215
216#include <NativeReal.h>
217
218/*** <<< TYPE-DECLS [IEEE-binary32-w] >>> ***/
219
Lev Walkinb5450702017-10-04 02:52:57 -0700220typedef float IEEE_binary32_w_t;
Lev Walkin026e21a2017-10-04 00:49:01 -0700221
222/*** <<< FUNC-DECLS [IEEE-binary32-w] >>> ***/
223
Lev Walkinb5450702017-10-04 02:52:57 -0700224extern asn_per_constraints_t asn_PER_type_IEEE_binary32_w_constr_1;
Lev Walkin026e21a2017-10-04 00:49:01 -0700225extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_w;
Lev Walkinb5450702017-10-04 02:52:57 -0700226extern const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_w_specs_1;
Lev Walkin026e21a2017-10-04 00:49:01 -0700227asn_struct_free_f IEEE_binary32_w_free;
228asn_struct_print_f IEEE_binary32_w_print;
229asn_constr_check_f IEEE_binary32_w_constraint;
230ber_type_decoder_f IEEE_binary32_w_decode_ber;
231der_type_encoder_f IEEE_binary32_w_encode_der;
232xer_type_decoder_f IEEE_binary32_w_decode_xer;
233xer_type_encoder_f IEEE_binary32_w_encode_xer;
234per_type_decoder_f IEEE_binary32_w_decode_uper;
235per_type_encoder_f IEEE_binary32_w_encode_uper;
236
237/*** <<< CODE [IEEE-binary32-w] >>> ***/
238
239int
Lev Walkin20696a42017-10-17 21:27:33 -0700240IEEE_binary32_w_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin026e21a2017-10-04 00:49:01 -0700241 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
242
243 if(!sptr) {
244 ASN__CTFAIL(app_key, td, sptr,
245 "%s: value not given (%s:%d)",
246 td->name, __FILE__, __LINE__);
247 return -1;
248 }
249
250
251 if(1 /* No applicable constraints whatsoever */) {
252 /* Nothing is here. See below */
253 }
254
255 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
256}
257
258/*
259 * This type is implemented using NativeReal,
260 * so here we adjust the DEF accordingly.
261 */
262
263/*** <<< CTDEFS [IEEE-binary32-w] >>> ***/
264
Lev Walkinb5450702017-10-04 02:52:57 -0700265asn_per_constraints_t asn_PER_type_IEEE_binary32_w_constr_1 CC_NOTUSED = {
Lev Walkin026e21a2017-10-04 00:49:01 -0700266 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
267 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
268 0, 0 /* No PER value map */
269};
270
271/*** <<< STAT-DEFS [IEEE-binary32-w] >>> ***/
272
Lev Walkinb5450702017-10-04 02:52:57 -0700273const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_w_specs_1 = {
274 4 /* Use 'float' type. */
275};
Lev Walkin026e21a2017-10-04 00:49:01 -0700276static const ber_tlv_tag_t asn_DEF_IEEE_binary32_w_tags_1[] = {
277 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
278};
279asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_w = {
280 "IEEE-binary32-w",
281 "IEEE-binary32-w",
282 &asn_OP_NativeReal,
283 asn_DEF_IEEE_binary32_w_tags_1,
284 sizeof(asn_DEF_IEEE_binary32_w_tags_1)
285 /sizeof(asn_DEF_IEEE_binary32_w_tags_1[0]), /* 1 */
286 asn_DEF_IEEE_binary32_w_tags_1, /* Same as above */
287 sizeof(asn_DEF_IEEE_binary32_w_tags_1)
288 /sizeof(asn_DEF_IEEE_binary32_w_tags_1[0]), /* 1 */
289 { 0, &asn_PER_type_IEEE_binary32_w_constr_1, IEEE_binary32_w_constraint },
290 0, 0, /* No members */
Lev Walkinb5450702017-10-04 02:52:57 -0700291 &asn_SPC_IEEE_binary32_w_specs_1 /* Additional specs */
Lev Walkin026e21a2017-10-04 00:49:01 -0700292};
293
294
295/*** <<< INCLUDES [IEEE-binary32-0w] >>> ***/
296
297#include <NativeReal.h>
298
299/*** <<< TYPE-DECLS [IEEE-binary32-0w] >>> ***/
300
Lev Walkinb5450702017-10-04 02:52:57 -0700301typedef float IEEE_binary32_0w_t;
Lev Walkin026e21a2017-10-04 00:49:01 -0700302
303/*** <<< FUNC-DECLS [IEEE-binary32-0w] >>> ***/
304
Lev Walkinb5450702017-10-04 02:52:57 -0700305extern asn_per_constraints_t asn_PER_type_IEEE_binary32_0w_constr_1;
Lev Walkin026e21a2017-10-04 00:49:01 -0700306extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_0w;
Lev Walkinb5450702017-10-04 02:52:57 -0700307extern const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_0w_specs_1;
Lev Walkin026e21a2017-10-04 00:49:01 -0700308asn_struct_free_f IEEE_binary32_0w_free;
309asn_struct_print_f IEEE_binary32_0w_print;
310asn_constr_check_f IEEE_binary32_0w_constraint;
311ber_type_decoder_f IEEE_binary32_0w_decode_ber;
312der_type_encoder_f IEEE_binary32_0w_encode_der;
313xer_type_decoder_f IEEE_binary32_0w_decode_xer;
314xer_type_encoder_f IEEE_binary32_0w_encode_xer;
315per_type_decoder_f IEEE_binary32_0w_decode_uper;
316per_type_encoder_f IEEE_binary32_0w_encode_uper;
317
318/*** <<< CODE [IEEE-binary32-0w] >>> ***/
319
320int
Lev Walkin20696a42017-10-17 21:27:33 -0700321IEEE_binary32_0w_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin026e21a2017-10-04 00:49:01 -0700322 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
323
324 if(!sptr) {
325 ASN__CTFAIL(app_key, td, sptr,
326 "%s: value not given (%s:%d)",
327 td->name, __FILE__, __LINE__);
328 return -1;
329 }
330
331
332 if(1 /* No applicable constraints whatsoever */) {
333 /* Nothing is here. See below */
334 }
335
336 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
337}
338
339/*
340 * This type is implemented using NativeReal,
341 * so here we adjust the DEF accordingly.
342 */
343
344/*** <<< CTDEFS [IEEE-binary32-0w] >>> ***/
345
Lev Walkinb5450702017-10-04 02:52:57 -0700346asn_per_constraints_t asn_PER_type_IEEE_binary32_0w_constr_1 CC_NOTUSED = {
Lev Walkin026e21a2017-10-04 00:49:01 -0700347 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
348 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
349 0, 0 /* No PER value map */
350};
351
352/*** <<< STAT-DEFS [IEEE-binary32-0w] >>> ***/
353
Lev Walkinb5450702017-10-04 02:52:57 -0700354const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_0w_specs_1 = {
355 4 /* Use 'float' type. */
356};
Lev Walkin026e21a2017-10-04 00:49:01 -0700357static const ber_tlv_tag_t asn_DEF_IEEE_binary32_0w_tags_1[] = {
358 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
359};
360asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_0w = {
361 "IEEE-binary32-0w",
362 "IEEE-binary32-0w",
363 &asn_OP_NativeReal,
364 asn_DEF_IEEE_binary32_0w_tags_1,
365 sizeof(asn_DEF_IEEE_binary32_0w_tags_1)
366 /sizeof(asn_DEF_IEEE_binary32_0w_tags_1[0]), /* 1 */
367 asn_DEF_IEEE_binary32_0w_tags_1, /* Same as above */
368 sizeof(asn_DEF_IEEE_binary32_0w_tags_1)
369 /sizeof(asn_DEF_IEEE_binary32_0w_tags_1[0]), /* 1 */
370 { 0, &asn_PER_type_IEEE_binary32_0w_constr_1, IEEE_binary32_0w_constraint },
371 0, 0, /* No members */
Lev Walkinb5450702017-10-04 02:52:57 -0700372 &asn_SPC_IEEE_binary32_0w_specs_1 /* Additional specs */
Lev Walkin026e21a2017-10-04 00:49:01 -0700373};
374
375
376/*** <<< INCLUDES [IEEE-binary32-w0] >>> ***/
377
378#include <NativeReal.h>
379
380/*** <<< TYPE-DECLS [IEEE-binary32-w0] >>> ***/
381
Lev Walkinb5450702017-10-04 02:52:57 -0700382typedef float IEEE_binary32_w0_t;
Lev Walkin026e21a2017-10-04 00:49:01 -0700383
384/*** <<< FUNC-DECLS [IEEE-binary32-w0] >>> ***/
385
Lev Walkinb5450702017-10-04 02:52:57 -0700386extern asn_per_constraints_t asn_PER_type_IEEE_binary32_w0_constr_1;
Lev Walkin026e21a2017-10-04 00:49:01 -0700387extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_w0;
Lev Walkinb5450702017-10-04 02:52:57 -0700388extern const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_w0_specs_1;
Lev Walkin026e21a2017-10-04 00:49:01 -0700389asn_struct_free_f IEEE_binary32_w0_free;
390asn_struct_print_f IEEE_binary32_w0_print;
391asn_constr_check_f IEEE_binary32_w0_constraint;
392ber_type_decoder_f IEEE_binary32_w0_decode_ber;
393der_type_encoder_f IEEE_binary32_w0_encode_der;
394xer_type_decoder_f IEEE_binary32_w0_decode_xer;
395xer_type_encoder_f IEEE_binary32_w0_encode_xer;
396per_type_decoder_f IEEE_binary32_w0_decode_uper;
397per_type_encoder_f IEEE_binary32_w0_encode_uper;
398
399/*** <<< CODE [IEEE-binary32-w0] >>> ***/
400
401int
Lev Walkin20696a42017-10-17 21:27:33 -0700402IEEE_binary32_w0_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin026e21a2017-10-04 00:49:01 -0700403 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
404
405 if(!sptr) {
406 ASN__CTFAIL(app_key, td, sptr,
407 "%s: value not given (%s:%d)",
408 td->name, __FILE__, __LINE__);
409 return -1;
410 }
411
412
413 if(1 /* No applicable constraints whatsoever */) {
414 /* Nothing is here. See below */
415 }
416
417 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
418}
419
420/*
421 * This type is implemented using NativeReal,
422 * so here we adjust the DEF accordingly.
423 */
424
425/*** <<< CTDEFS [IEEE-binary32-w0] >>> ***/
426
Lev Walkinb5450702017-10-04 02:52:57 -0700427asn_per_constraints_t asn_PER_type_IEEE_binary32_w0_constr_1 CC_NOTUSED = {
Lev Walkin026e21a2017-10-04 00:49:01 -0700428 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
429 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
430 0, 0 /* No PER value map */
431};
432
433/*** <<< STAT-DEFS [IEEE-binary32-w0] >>> ***/
434
Lev Walkinb5450702017-10-04 02:52:57 -0700435const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_w0_specs_1 = {
436 4 /* Use 'float' type. */
437};
Lev Walkin026e21a2017-10-04 00:49:01 -0700438static const ber_tlv_tag_t asn_DEF_IEEE_binary32_w0_tags_1[] = {
439 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
440};
441asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_w0 = {
442 "IEEE-binary32-w0",
443 "IEEE-binary32-w0",
444 &asn_OP_NativeReal,
445 asn_DEF_IEEE_binary32_w0_tags_1,
446 sizeof(asn_DEF_IEEE_binary32_w0_tags_1)
447 /sizeof(asn_DEF_IEEE_binary32_w0_tags_1[0]), /* 1 */
448 asn_DEF_IEEE_binary32_w0_tags_1, /* Same as above */
449 sizeof(asn_DEF_IEEE_binary32_w0_tags_1)
450 /sizeof(asn_DEF_IEEE_binary32_w0_tags_1[0]), /* 1 */
451 { 0, &asn_PER_type_IEEE_binary32_w0_constr_1, IEEE_binary32_w0_constraint },
452 0, 0, /* No members */
Lev Walkinb5450702017-10-04 02:52:57 -0700453 &asn_SPC_IEEE_binary32_w0_specs_1 /* Additional specs */
Lev Walkin026e21a2017-10-04 00:49:01 -0700454};
455
456
457/*** <<< INCLUDES [IEEE-binary64-w] >>> ***/
458
459#include <NativeReal.h>
460
461/*** <<< TYPE-DECLS [IEEE-binary64-w] >>> ***/
462
463typedef double IEEE_binary64_w_t;
464
465/*** <<< FUNC-DECLS [IEEE-binary64-w] >>> ***/
466
Lev Walkinb5450702017-10-04 02:52:57 -0700467extern asn_per_constraints_t asn_PER_type_IEEE_binary64_w_constr_1;
Lev Walkin026e21a2017-10-04 00:49:01 -0700468extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_w;
469asn_struct_free_f IEEE_binary64_w_free;
470asn_struct_print_f IEEE_binary64_w_print;
471asn_constr_check_f IEEE_binary64_w_constraint;
472ber_type_decoder_f IEEE_binary64_w_decode_ber;
473der_type_encoder_f IEEE_binary64_w_encode_der;
474xer_type_decoder_f IEEE_binary64_w_decode_xer;
475xer_type_encoder_f IEEE_binary64_w_encode_xer;
476per_type_decoder_f IEEE_binary64_w_decode_uper;
477per_type_encoder_f IEEE_binary64_w_encode_uper;
478
479/*** <<< CODE [IEEE-binary64-w] >>> ***/
480
481int
Lev Walkin20696a42017-10-17 21:27:33 -0700482IEEE_binary64_w_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin026e21a2017-10-04 00:49:01 -0700483 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
484
485 if(!sptr) {
486 ASN__CTFAIL(app_key, td, sptr,
487 "%s: value not given (%s:%d)",
488 td->name, __FILE__, __LINE__);
489 return -1;
490 }
491
492
493 if(1 /* No applicable constraints whatsoever */) {
494 /* Nothing is here. See below */
495 }
496
497 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
498}
499
500/*
501 * This type is implemented using NativeReal,
502 * so here we adjust the DEF accordingly.
503 */
504
505/*** <<< CTDEFS [IEEE-binary64-w] >>> ***/
506
Lev Walkinb5450702017-10-04 02:52:57 -0700507asn_per_constraints_t asn_PER_type_IEEE_binary64_w_constr_1 CC_NOTUSED = {
Lev Walkin026e21a2017-10-04 00:49:01 -0700508 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
509 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
510 0, 0 /* No PER value map */
511};
512
513/*** <<< STAT-DEFS [IEEE-binary64-w] >>> ***/
514
515static const ber_tlv_tag_t asn_DEF_IEEE_binary64_w_tags_1[] = {
516 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
517};
518asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_w = {
519 "IEEE-binary64-w",
520 "IEEE-binary64-w",
521 &asn_OP_NativeReal,
522 asn_DEF_IEEE_binary64_w_tags_1,
523 sizeof(asn_DEF_IEEE_binary64_w_tags_1)
524 /sizeof(asn_DEF_IEEE_binary64_w_tags_1[0]), /* 1 */
525 asn_DEF_IEEE_binary64_w_tags_1, /* Same as above */
526 sizeof(asn_DEF_IEEE_binary64_w_tags_1)
527 /sizeof(asn_DEF_IEEE_binary64_w_tags_1[0]), /* 1 */
528 { 0, &asn_PER_type_IEEE_binary64_w_constr_1, IEEE_binary64_w_constraint },
529 0, 0, /* No members */
530 0 /* No specifics */
531};
532
533
534/*** <<< INCLUDES [IEEE-binary64-0w] >>> ***/
535
536#include <NativeReal.h>
537
538/*** <<< TYPE-DECLS [IEEE-binary64-0w] >>> ***/
539
540typedef double IEEE_binary64_0w_t;
541
542/*** <<< FUNC-DECLS [IEEE-binary64-0w] >>> ***/
543
Lev Walkinb5450702017-10-04 02:52:57 -0700544extern asn_per_constraints_t asn_PER_type_IEEE_binary64_0w_constr_1;
Lev Walkin026e21a2017-10-04 00:49:01 -0700545extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_0w;
546asn_struct_free_f IEEE_binary64_0w_free;
547asn_struct_print_f IEEE_binary64_0w_print;
548asn_constr_check_f IEEE_binary64_0w_constraint;
549ber_type_decoder_f IEEE_binary64_0w_decode_ber;
550der_type_encoder_f IEEE_binary64_0w_encode_der;
551xer_type_decoder_f IEEE_binary64_0w_decode_xer;
552xer_type_encoder_f IEEE_binary64_0w_encode_xer;
553per_type_decoder_f IEEE_binary64_0w_decode_uper;
554per_type_encoder_f IEEE_binary64_0w_encode_uper;
555
556/*** <<< CODE [IEEE-binary64-0w] >>> ***/
557
558int
Lev Walkin20696a42017-10-17 21:27:33 -0700559IEEE_binary64_0w_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin026e21a2017-10-04 00:49:01 -0700560 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
561
562 if(!sptr) {
563 ASN__CTFAIL(app_key, td, sptr,
564 "%s: value not given (%s:%d)",
565 td->name, __FILE__, __LINE__);
566 return -1;
567 }
568
569
570 if(1 /* No applicable constraints whatsoever */) {
571 /* Nothing is here. See below */
572 }
573
574 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
575}
576
577/*
578 * This type is implemented using NativeReal,
579 * so here we adjust the DEF accordingly.
580 */
581
582/*** <<< CTDEFS [IEEE-binary64-0w] >>> ***/
583
Lev Walkinb5450702017-10-04 02:52:57 -0700584asn_per_constraints_t asn_PER_type_IEEE_binary64_0w_constr_1 CC_NOTUSED = {
Lev Walkin026e21a2017-10-04 00:49:01 -0700585 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
586 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
587 0, 0 /* No PER value map */
588};
589
590/*** <<< STAT-DEFS [IEEE-binary64-0w] >>> ***/
591
592static const ber_tlv_tag_t asn_DEF_IEEE_binary64_0w_tags_1[] = {
593 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
594};
595asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_0w = {
596 "IEEE-binary64-0w",
597 "IEEE-binary64-0w",
598 &asn_OP_NativeReal,
599 asn_DEF_IEEE_binary64_0w_tags_1,
600 sizeof(asn_DEF_IEEE_binary64_0w_tags_1)
601 /sizeof(asn_DEF_IEEE_binary64_0w_tags_1[0]), /* 1 */
602 asn_DEF_IEEE_binary64_0w_tags_1, /* Same as above */
603 sizeof(asn_DEF_IEEE_binary64_0w_tags_1)
604 /sizeof(asn_DEF_IEEE_binary64_0w_tags_1[0]), /* 1 */
605 { 0, &asn_PER_type_IEEE_binary64_0w_constr_1, IEEE_binary64_0w_constraint },
606 0, 0, /* No members */
607 0 /* No specifics */
608};
609
610
611/*** <<< INCLUDES [IEEE-binary64-w0] >>> ***/
612
613#include <NativeReal.h>
614
615/*** <<< TYPE-DECLS [IEEE-binary64-w0] >>> ***/
616
617typedef double IEEE_binary64_w0_t;
618
619/*** <<< FUNC-DECLS [IEEE-binary64-w0] >>> ***/
620
Lev Walkinb5450702017-10-04 02:52:57 -0700621extern asn_per_constraints_t asn_PER_type_IEEE_binary64_w0_constr_1;
Lev Walkin026e21a2017-10-04 00:49:01 -0700622extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_w0;
623asn_struct_free_f IEEE_binary64_w0_free;
624asn_struct_print_f IEEE_binary64_w0_print;
625asn_constr_check_f IEEE_binary64_w0_constraint;
626ber_type_decoder_f IEEE_binary64_w0_decode_ber;
627der_type_encoder_f IEEE_binary64_w0_encode_der;
628xer_type_decoder_f IEEE_binary64_w0_decode_xer;
629xer_type_encoder_f IEEE_binary64_w0_encode_xer;
630per_type_decoder_f IEEE_binary64_w0_decode_uper;
631per_type_encoder_f IEEE_binary64_w0_encode_uper;
632
633/*** <<< CODE [IEEE-binary64-w0] >>> ***/
634
635int
Lev Walkin20696a42017-10-17 21:27:33 -0700636IEEE_binary64_w0_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkin026e21a2017-10-04 00:49:01 -0700637 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
638
639 if(!sptr) {
640 ASN__CTFAIL(app_key, td, sptr,
641 "%s: value not given (%s:%d)",
642 td->name, __FILE__, __LINE__);
643 return -1;
644 }
645
646
647 if(1 /* No applicable constraints whatsoever */) {
648 /* Nothing is here. See below */
649 }
650
651 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
652}
653
654/*
655 * This type is implemented using NativeReal,
656 * so here we adjust the DEF accordingly.
657 */
658
659/*** <<< CTDEFS [IEEE-binary64-w0] >>> ***/
660
Lev Walkinb5450702017-10-04 02:52:57 -0700661asn_per_constraints_t asn_PER_type_IEEE_binary64_w0_constr_1 CC_NOTUSED = {
Lev Walkin026e21a2017-10-04 00:49:01 -0700662 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
663 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
664 0, 0 /* No PER value map */
665};
666
667/*** <<< STAT-DEFS [IEEE-binary64-w0] >>> ***/
668
669static const ber_tlv_tag_t asn_DEF_IEEE_binary64_w0_tags_1[] = {
670 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
671};
672asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_w0 = {
673 "IEEE-binary64-w0",
674 "IEEE-binary64-w0",
675 &asn_OP_NativeReal,
676 asn_DEF_IEEE_binary64_w0_tags_1,
677 sizeof(asn_DEF_IEEE_binary64_w0_tags_1)
678 /sizeof(asn_DEF_IEEE_binary64_w0_tags_1[0]), /* 1 */
679 asn_DEF_IEEE_binary64_w0_tags_1, /* Same as above */
680 sizeof(asn_DEF_IEEE_binary64_w0_tags_1)
681 /sizeof(asn_DEF_IEEE_binary64_w0_tags_1[0]), /* 1 */
682 { 0, &asn_PER_type_IEEE_binary64_w0_constr_1, IEEE_binary64_w0_constraint },
683 0, 0, /* No members */
684 0 /* No specifics */
685};
686
Lev Walkinb5450702017-10-04 02:52:57 -0700687
688/*** <<< INCLUDES [Test] >>> ***/
689
690#include "Indirect-IEEE-binary32.h"
691#include "IEEE-binary32-w.h"
692#include "IEEE-binary32-0w.h"
693#include "IEEE-binary32-w0.h"
694#include "IEEE-binary64-w.h"
695#include "IEEE-binary64-0w.h"
696#include "IEEE-binary64-w0.h"
697#include <constr_SEQUENCE.h>
698
699/*** <<< TYPE-DECLS [Test] >>> ***/
700
701typedef struct Test {
702 Indirect_IEEE_binary32_t indirect_ieee_binary32;
703 IEEE_binary32_w_t ieee_binary32_w;
704 IEEE_binary32_0w_t ieee_binary32_0w;
705 IEEE_binary32_w0_t ieee_binary32_w0;
706 IEEE_binary64_w_t ieee_binary64_w;
707 IEEE_binary64_0w_t ieee_binary64_0w;
708 IEEE_binary64_w0_t ieee_binary64_w0;
709
710 /* Context for parsing across buffer boundaries */
711 asn_struct_ctx_t _asn_ctx;
712} Test_t;
713
714/*** <<< FUNC-DECLS [Test] >>> ***/
715
716/* extern asn_TYPE_descriptor_t asn_DEF_indirect_ieee_binary32_2; // (Use -fall-defs-global to expose) */
717/* extern asn_TYPE_descriptor_t asn_DEF_ieee_binary32_w_3; // (Use -fall-defs-global to expose) */
718/* extern asn_TYPE_descriptor_t asn_DEF_ieee_binary32_0w_4; // (Use -fall-defs-global to expose) */
719/* extern asn_TYPE_descriptor_t asn_DEF_ieee_binary32_w0_5; // (Use -fall-defs-global to expose) */
720extern asn_TYPE_descriptor_t asn_DEF_Test;
721
722/*** <<< CODE [Test] >>> ***/
723
724static int
Lev Walkin20696a42017-10-17 21:27:33 -0700725indirect_ieee_binary32_2_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkinb5450702017-10-04 02:52:57 -0700726 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
727
728 if(!sptr) {
729 ASN__CTFAIL(app_key, td, sptr,
730 "%s: value not given (%s:%d)",
731 td->name, __FILE__, __LINE__);
732 return -1;
733 }
734
735
736 if(1 /* No applicable constraints whatsoever */) {
737 /* Nothing is here. See below */
738 }
739
740 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
741}
742
743/*
744 * This type is implemented using Indirect_IEEE_binary32,
745 * so here we adjust the DEF accordingly.
746 */
747static int
Lev Walkin20696a42017-10-17 21:27:33 -0700748ieee_binary32_w_3_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkinb5450702017-10-04 02:52:57 -0700749 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
750
751 if(!sptr) {
752 ASN__CTFAIL(app_key, td, sptr,
753 "%s: value not given (%s:%d)",
754 td->name, __FILE__, __LINE__);
755 return -1;
756 }
757
758
759 if(1 /* No applicable constraints whatsoever */) {
760 /* Nothing is here. See below */
761 }
762
763 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
764}
765
766/*
767 * This type is implemented using IEEE_binary32_w,
768 * so here we adjust the DEF accordingly.
769 */
770static int
Lev Walkin20696a42017-10-17 21:27:33 -0700771ieee_binary32_0w_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkinb5450702017-10-04 02:52:57 -0700772 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
773
774 if(!sptr) {
775 ASN__CTFAIL(app_key, td, sptr,
776 "%s: value not given (%s:%d)",
777 td->name, __FILE__, __LINE__);
778 return -1;
779 }
780
781
782 if(1 /* No applicable constraints whatsoever */) {
783 /* Nothing is here. See below */
784 }
785
786 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
787}
788
789/*
790 * This type is implemented using IEEE_binary32_0w,
791 * so here we adjust the DEF accordingly.
792 */
793static int
Lev Walkin20696a42017-10-17 21:27:33 -0700794ieee_binary32_w0_5_constraint(const asn_TYPE_descriptor_t *td, const void *sptr,
Lev Walkinb5450702017-10-04 02:52:57 -0700795 asn_app_constraint_failed_f *ctfailcb, void *app_key) {
796
797 if(!sptr) {
798 ASN__CTFAIL(app_key, td, sptr,
799 "%s: value not given (%s:%d)",
800 td->name, __FILE__, __LINE__);
801 return -1;
802 }
803
804
805 if(1 /* No applicable constraints whatsoever */) {
806 /* Nothing is here. See below */
807 }
808
809 return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key);
810}
811
812/*
813 * This type is implemented using IEEE_binary32_w0,
814 * so here we adjust the DEF accordingly.
815 */
816
817/*** <<< CTDEFS [Test] >>> ***/
818
819static asn_per_constraints_t asn_PER_type_indirect_ieee_binary32_constr_2 CC_NOTUSED = {
820 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
821 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
822 0, 0 /* No PER value map */
823};
824static asn_per_constraints_t asn_PER_type_ieee_binary32_w_constr_3 CC_NOTUSED = {
825 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
826 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
827 0, 0 /* No PER value map */
828};
829static asn_per_constraints_t asn_PER_type_ieee_binary32_0w_constr_4 CC_NOTUSED = {
830 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
831 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
832 0, 0 /* No PER value map */
833};
834static asn_per_constraints_t asn_PER_type_ieee_binary32_w0_constr_5 CC_NOTUSED = {
835 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
836 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
837 0, 0 /* No PER value map */
838};
839
840/*** <<< STAT-DEFS [Test] >>> ***/
841
842static const asn_NativeReal_specifics_t asn_SPC_indirect_ieee_binary32_specs_2 = {
843 4 /* Use 'float' type. */
844};
845static const ber_tlv_tag_t asn_DEF_indirect_ieee_binary32_tags_2[] = {
846 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
847};
848static /* Use -fall-defs-global to expose */
849asn_TYPE_descriptor_t asn_DEF_indirect_ieee_binary32_2 = {
850 "indirect-ieee-binary32",
851 "indirect-ieee-binary32",
852 &asn_OP_NativeReal,
853 asn_DEF_indirect_ieee_binary32_tags_2,
854 sizeof(asn_DEF_indirect_ieee_binary32_tags_2)
855 /sizeof(asn_DEF_indirect_ieee_binary32_tags_2[0]), /* 1 */
856 asn_DEF_indirect_ieee_binary32_tags_2, /* Same as above */
857 sizeof(asn_DEF_indirect_ieee_binary32_tags_2)
858 /sizeof(asn_DEF_indirect_ieee_binary32_tags_2[0]), /* 1 */
859 { 0, &asn_PER_type_indirect_ieee_binary32_constr_2, indirect_ieee_binary32_2_constraint },
860 0, 0, /* No members */
861 &asn_SPC_indirect_ieee_binary32_specs_2 /* Additional specs */
862};
863
864static const asn_NativeReal_specifics_t asn_SPC_ieee_binary32_w_specs_3 = {
865 4 /* Use 'float' type. */
866};
867static const ber_tlv_tag_t asn_DEF_ieee_binary32_w_tags_3[] = {
868 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
869};
870static /* Use -fall-defs-global to expose */
871asn_TYPE_descriptor_t asn_DEF_ieee_binary32_w_3 = {
872 "ieee-binary32-w",
873 "ieee-binary32-w",
874 &asn_OP_NativeReal,
875 asn_DEF_ieee_binary32_w_tags_3,
876 sizeof(asn_DEF_ieee_binary32_w_tags_3)
877 /sizeof(asn_DEF_ieee_binary32_w_tags_3[0]), /* 1 */
878 asn_DEF_ieee_binary32_w_tags_3, /* Same as above */
879 sizeof(asn_DEF_ieee_binary32_w_tags_3)
880 /sizeof(asn_DEF_ieee_binary32_w_tags_3[0]), /* 1 */
881 { 0, &asn_PER_type_ieee_binary32_w_constr_3, ieee_binary32_w_3_constraint },
882 0, 0, /* No members */
883 &asn_SPC_ieee_binary32_w_specs_3 /* Additional specs */
884};
885
886static const asn_NativeReal_specifics_t asn_SPC_ieee_binary32_0w_specs_4 = {
887 4 /* Use 'float' type. */
888};
889static const ber_tlv_tag_t asn_DEF_ieee_binary32_0w_tags_4[] = {
890 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
891};
892static /* Use -fall-defs-global to expose */
893asn_TYPE_descriptor_t asn_DEF_ieee_binary32_0w_4 = {
894 "ieee-binary32-0w",
895 "ieee-binary32-0w",
896 &asn_OP_NativeReal,
897 asn_DEF_ieee_binary32_0w_tags_4,
898 sizeof(asn_DEF_ieee_binary32_0w_tags_4)
899 /sizeof(asn_DEF_ieee_binary32_0w_tags_4[0]), /* 1 */
900 asn_DEF_ieee_binary32_0w_tags_4, /* Same as above */
901 sizeof(asn_DEF_ieee_binary32_0w_tags_4)
902 /sizeof(asn_DEF_ieee_binary32_0w_tags_4[0]), /* 1 */
903 { 0, &asn_PER_type_ieee_binary32_0w_constr_4, ieee_binary32_0w_4_constraint },
904 0, 0, /* No members */
905 &asn_SPC_ieee_binary32_0w_specs_4 /* Additional specs */
906};
907
908static const asn_NativeReal_specifics_t asn_SPC_ieee_binary32_w0_specs_5 = {
909 4 /* Use 'float' type. */
910};
911static const ber_tlv_tag_t asn_DEF_ieee_binary32_w0_tags_5[] = {
912 (ASN_TAG_CLASS_UNIVERSAL | (9 << 2))
913};
914static /* Use -fall-defs-global to expose */
915asn_TYPE_descriptor_t asn_DEF_ieee_binary32_w0_5 = {
916 "ieee-binary32-w0",
917 "ieee-binary32-w0",
918 &asn_OP_NativeReal,
919 asn_DEF_ieee_binary32_w0_tags_5,
920 sizeof(asn_DEF_ieee_binary32_w0_tags_5)
921 /sizeof(asn_DEF_ieee_binary32_w0_tags_5[0]), /* 1 */
922 asn_DEF_ieee_binary32_w0_tags_5, /* Same as above */
923 sizeof(asn_DEF_ieee_binary32_w0_tags_5)
924 /sizeof(asn_DEF_ieee_binary32_w0_tags_5[0]), /* 1 */
925 { 0, &asn_PER_type_ieee_binary32_w0_constr_5, ieee_binary32_w0_5_constraint },
926 0, 0, /* No members */
927 &asn_SPC_ieee_binary32_w0_specs_5 /* Additional specs */
928};
929
930static asn_TYPE_member_t asn_MBR_Test_1[] = {
931 { ATF_NOFLAGS, 0, offsetof(struct Test, indirect_ieee_binary32),
932 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
933 .tag_mode = 0,
934 .type = &asn_DEF_Indirect_IEEE_binary32,
935 .type_selector = 0,
936 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700937 0, 0, /* No default value */
Lev Walkinb5450702017-10-04 02:52:57 -0700938 .name = "indirect-ieee-binary32"
939 },
940 { ATF_NOFLAGS, 0, offsetof(struct Test, ieee_binary32_w),
941 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
942 .tag_mode = 0,
943 .type = &asn_DEF_IEEE_binary32_w,
944 .type_selector = 0,
945 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700946 0, 0, /* No default value */
Lev Walkinb5450702017-10-04 02:52:57 -0700947 .name = "ieee-binary32-w"
948 },
949 { ATF_NOFLAGS, 0, offsetof(struct Test, ieee_binary32_0w),
950 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
951 .tag_mode = 0,
952 .type = &asn_DEF_IEEE_binary32_0w,
953 .type_selector = 0,
954 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700955 0, 0, /* No default value */
Lev Walkinb5450702017-10-04 02:52:57 -0700956 .name = "ieee-binary32-0w"
957 },
958 { ATF_NOFLAGS, 0, offsetof(struct Test, ieee_binary32_w0),
959 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
960 .tag_mode = 0,
961 .type = &asn_DEF_IEEE_binary32_w0,
962 .type_selector = 0,
963 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700964 0, 0, /* No default value */
Lev Walkinb5450702017-10-04 02:52:57 -0700965 .name = "ieee-binary32-w0"
966 },
967 { ATF_NOFLAGS, 0, offsetof(struct Test, ieee_binary64_w),
968 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
969 .tag_mode = 0,
970 .type = &asn_DEF_IEEE_binary64_w,
971 .type_selector = 0,
972 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700973 0, 0, /* No default value */
Lev Walkinb5450702017-10-04 02:52:57 -0700974 .name = "ieee-binary64-w"
975 },
976 { ATF_NOFLAGS, 0, offsetof(struct Test, ieee_binary64_0w),
977 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
978 .tag_mode = 0,
979 .type = &asn_DEF_IEEE_binary64_0w,
980 .type_selector = 0,
981 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700982 0, 0, /* No default value */
Lev Walkinb5450702017-10-04 02:52:57 -0700983 .name = "ieee-binary64-0w"
984 },
985 { ATF_NOFLAGS, 0, offsetof(struct Test, ieee_binary64_w0),
986 .tag = (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)),
987 .tag_mode = 0,
988 .type = &asn_DEF_IEEE_binary64_w0,
989 .type_selector = 0,
990 { .oer_constraints = 0, .per_constraints = 0, .general_constraints = 0 },
Lev Walkin20696a42017-10-17 21:27:33 -0700991 0, 0, /* No default value */
Lev Walkinb5450702017-10-04 02:52:57 -0700992 .name = "ieee-binary64-w0"
993 },
994};
995static const ber_tlv_tag_t asn_DEF_Test_tags_1[] = {
996 (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
997};
998static const asn_TYPE_tag2member_t asn_MAP_Test_tag2el_1[] = {
999 { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 0, 0, 6 }, /* indirect-ieee-binary32 */
1000 { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 1, -1, 5 }, /* ieee-binary32-w */
1001 { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 2, -2, 4 }, /* ieee-binary32-0w */
1002 { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 3, -3, 3 }, /* ieee-binary32-w0 */
1003 { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 4, -4, 2 }, /* ieee-binary64-w */
1004 { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 5, -5, 1 }, /* ieee-binary64-0w */
1005 { (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)), 6, -6, 0 } /* ieee-binary64-w0 */
1006};
1007static asn_SEQUENCE_specifics_t asn_SPC_Test_specs_1 = {
1008 sizeof(struct Test),
1009 offsetof(struct Test, _asn_ctx),
1010 .tag2el = asn_MAP_Test_tag2el_1,
1011 .tag2el_count = 7, /* Count of tags in the map */
1012 0, 0, 0, /* Optional elements (not needed) */
Lev Walkindf2edbb2017-10-21 13:40:07 -07001013 -1, /* First extension addition */
Lev Walkinb5450702017-10-04 02:52:57 -07001014};
1015asn_TYPE_descriptor_t asn_DEF_Test = {
1016 "Test",
1017 "Test",
1018 &asn_OP_SEQUENCE,
1019 asn_DEF_Test_tags_1,
1020 sizeof(asn_DEF_Test_tags_1)
1021 /sizeof(asn_DEF_Test_tags_1[0]), /* 1 */
1022 asn_DEF_Test_tags_1, /* Same as above */
1023 sizeof(asn_DEF_Test_tags_1)
1024 /sizeof(asn_DEF_Test_tags_1[0]), /* 1 */
1025 { 0, 0, SEQUENCE_constraint },
1026 asn_MBR_Test_1,
1027 7, /* Elements count */
1028 &asn_SPC_Test_specs_1 /* Additional specs */
1029};
1030