Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 1 | |
| 2 | /*** <<< INCLUDES [UnconstrainedREAL] >>> ***/ |
| 3 | |
| 4 | #include <NativeReal.h> |
| 5 | |
| 6 | /*** <<< TYPE-DECLS [UnconstrainedREAL] >>> ***/ |
| 7 | |
| 8 | typedef double UnconstrainedREAL_t; |
| 9 | |
| 10 | /*** <<< FUNC-DECLS [UnconstrainedREAL] >>> ***/ |
| 11 | |
| 12 | extern asn_TYPE_descriptor_t asn_DEF_UnconstrainedREAL; |
| 13 | asn_struct_free_f UnconstrainedREAL_free; |
| 14 | asn_struct_print_f UnconstrainedREAL_print; |
| 15 | asn_constr_check_f UnconstrainedREAL_constraint; |
| 16 | ber_type_decoder_f UnconstrainedREAL_decode_ber; |
| 17 | der_type_encoder_f UnconstrainedREAL_encode_der; |
| 18 | xer_type_decoder_f UnconstrainedREAL_decode_xer; |
| 19 | xer_type_encoder_f UnconstrainedREAL_encode_xer; |
| 20 | per_type_decoder_f UnconstrainedREAL_decode_uper; |
| 21 | per_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 | |
| 32 | static const ber_tlv_tag_t asn_DEF_UnconstrainedREAL_tags_1[] = { |
| 33 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 34 | }; |
| 35 | asn_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 | |
| 57 | typedef double WeirdlyConstrainedREAL_t; |
| 58 | |
| 59 | /*** <<< FUNC-DECLS [WeirdlyConstrainedREAL] >>> ***/ |
| 60 | |
| 61 | extern asn_TYPE_descriptor_t asn_DEF_WeirdlyConstrainedREAL; |
| 62 | asn_struct_free_f WeirdlyConstrainedREAL_free; |
| 63 | asn_struct_print_f WeirdlyConstrainedREAL_print; |
| 64 | asn_constr_check_f WeirdlyConstrainedREAL_constraint; |
| 65 | ber_type_decoder_f WeirdlyConstrainedREAL_decode_ber; |
| 66 | der_type_encoder_f WeirdlyConstrainedREAL_encode_der; |
| 67 | xer_type_decoder_f WeirdlyConstrainedREAL_decode_xer; |
| 68 | xer_type_encoder_f WeirdlyConstrainedREAL_encode_xer; |
| 69 | per_type_decoder_f WeirdlyConstrainedREAL_decode_uper; |
| 70 | per_type_encoder_f WeirdlyConstrainedREAL_encode_uper; |
| 71 | |
| 72 | /*** <<< CODE [WeirdlyConstrainedREAL] >>> ***/ |
| 73 | |
| 74 | int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 75 | WeirdlyConstrainedREAL_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 76 | 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 | |
| 106 | static 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 | |
| 114 | static const ber_tlv_tag_t asn_DEF_WeirdlyConstrainedREAL_tags_1[] = { |
| 115 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 116 | }; |
| 117 | asn_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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 133 | /*** <<< INCLUDES [Indirect-IEEE-binary32] >>> ***/ |
| 134 | |
| 135 | #include "UnconstrainedREAL.h" |
| 136 | |
| 137 | /*** <<< TYPE-DECLS [Indirect-IEEE-binary32] >>> ***/ |
| 138 | |
| 139 | typedef UnconstrainedREAL_t Indirect_IEEE_binary32_t; |
| 140 | |
| 141 | /*** <<< FUNC-DECLS [Indirect-IEEE-binary32] >>> ***/ |
| 142 | |
| 143 | extern asn_per_constraints_t asn_PER_type_Indirect_IEEE_binary32_constr_1; |
| 144 | extern asn_TYPE_descriptor_t asn_DEF_Indirect_IEEE_binary32; |
| 145 | extern const asn_NativeReal_specifics_t asn_SPC_Indirect_IEEE_binary32_specs_1; |
| 146 | asn_struct_free_f Indirect_IEEE_binary32_free; |
| 147 | asn_struct_print_f Indirect_IEEE_binary32_print; |
| 148 | asn_constr_check_f Indirect_IEEE_binary32_constraint; |
| 149 | ber_type_decoder_f Indirect_IEEE_binary32_decode_ber; |
| 150 | der_type_encoder_f Indirect_IEEE_binary32_encode_der; |
| 151 | xer_type_decoder_f Indirect_IEEE_binary32_decode_xer; |
| 152 | xer_type_encoder_f Indirect_IEEE_binary32_encode_xer; |
| 153 | per_type_decoder_f Indirect_IEEE_binary32_decode_uper; |
| 154 | per_type_encoder_f Indirect_IEEE_binary32_encode_uper; |
| 155 | |
| 156 | /*** <<< CODE [Indirect-IEEE-binary32] >>> ***/ |
| 157 | |
| 158 | int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 159 | Indirect_IEEE_binary32_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 160 | 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 | |
| 184 | asn_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 | |
| 192 | const asn_NativeReal_specifics_t asn_SPC_Indirect_IEEE_binary32_specs_1 = { |
| 193 | 4 /* Use 'float' type. */ |
| 194 | }; |
| 195 | static const ber_tlv_tag_t asn_DEF_Indirect_IEEE_binary32_tags_1[] = { |
| 196 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 197 | }; |
| 198 | asn_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 Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 214 | /*** <<< INCLUDES [IEEE-binary32-w] >>> ***/ |
| 215 | |
| 216 | #include <NativeReal.h> |
| 217 | |
| 218 | /*** <<< TYPE-DECLS [IEEE-binary32-w] >>> ***/ |
| 219 | |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 220 | typedef float IEEE_binary32_w_t; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 221 | |
| 222 | /*** <<< FUNC-DECLS [IEEE-binary32-w] >>> ***/ |
| 223 | |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 224 | extern asn_per_constraints_t asn_PER_type_IEEE_binary32_w_constr_1; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 225 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_w; |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 226 | extern const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_w_specs_1; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 227 | asn_struct_free_f IEEE_binary32_w_free; |
| 228 | asn_struct_print_f IEEE_binary32_w_print; |
| 229 | asn_constr_check_f IEEE_binary32_w_constraint; |
| 230 | ber_type_decoder_f IEEE_binary32_w_decode_ber; |
| 231 | der_type_encoder_f IEEE_binary32_w_encode_der; |
| 232 | xer_type_decoder_f IEEE_binary32_w_decode_xer; |
| 233 | xer_type_encoder_f IEEE_binary32_w_encode_xer; |
| 234 | per_type_decoder_f IEEE_binary32_w_decode_uper; |
| 235 | per_type_encoder_f IEEE_binary32_w_encode_uper; |
| 236 | |
| 237 | /*** <<< CODE [IEEE-binary32-w] >>> ***/ |
| 238 | |
| 239 | int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 240 | IEEE_binary32_w_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 241 | 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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 265 | asn_per_constraints_t asn_PER_type_IEEE_binary32_w_constr_1 CC_NOTUSED = { |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 266 | { 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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 273 | const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_w_specs_1 = { |
| 274 | 4 /* Use 'float' type. */ |
| 275 | }; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 276 | static const ber_tlv_tag_t asn_DEF_IEEE_binary32_w_tags_1[] = { |
| 277 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 278 | }; |
| 279 | asn_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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 291 | &asn_SPC_IEEE_binary32_w_specs_1 /* Additional specs */ |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 292 | }; |
| 293 | |
| 294 | |
| 295 | /*** <<< INCLUDES [IEEE-binary32-0w] >>> ***/ |
| 296 | |
| 297 | #include <NativeReal.h> |
| 298 | |
| 299 | /*** <<< TYPE-DECLS [IEEE-binary32-0w] >>> ***/ |
| 300 | |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 301 | typedef float IEEE_binary32_0w_t; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 302 | |
| 303 | /*** <<< FUNC-DECLS [IEEE-binary32-0w] >>> ***/ |
| 304 | |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 305 | extern asn_per_constraints_t asn_PER_type_IEEE_binary32_0w_constr_1; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 306 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_0w; |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 307 | extern const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_0w_specs_1; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 308 | asn_struct_free_f IEEE_binary32_0w_free; |
| 309 | asn_struct_print_f IEEE_binary32_0w_print; |
| 310 | asn_constr_check_f IEEE_binary32_0w_constraint; |
| 311 | ber_type_decoder_f IEEE_binary32_0w_decode_ber; |
| 312 | der_type_encoder_f IEEE_binary32_0w_encode_der; |
| 313 | xer_type_decoder_f IEEE_binary32_0w_decode_xer; |
| 314 | xer_type_encoder_f IEEE_binary32_0w_encode_xer; |
| 315 | per_type_decoder_f IEEE_binary32_0w_decode_uper; |
| 316 | per_type_encoder_f IEEE_binary32_0w_encode_uper; |
| 317 | |
| 318 | /*** <<< CODE [IEEE-binary32-0w] >>> ***/ |
| 319 | |
| 320 | int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 321 | IEEE_binary32_0w_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 322 | 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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 346 | asn_per_constraints_t asn_PER_type_IEEE_binary32_0w_constr_1 CC_NOTUSED = { |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 347 | { 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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 354 | const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_0w_specs_1 = { |
| 355 | 4 /* Use 'float' type. */ |
| 356 | }; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 357 | static const ber_tlv_tag_t asn_DEF_IEEE_binary32_0w_tags_1[] = { |
| 358 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 359 | }; |
| 360 | asn_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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 372 | &asn_SPC_IEEE_binary32_0w_specs_1 /* Additional specs */ |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 373 | }; |
| 374 | |
| 375 | |
| 376 | /*** <<< INCLUDES [IEEE-binary32-w0] >>> ***/ |
| 377 | |
| 378 | #include <NativeReal.h> |
| 379 | |
| 380 | /*** <<< TYPE-DECLS [IEEE-binary32-w0] >>> ***/ |
| 381 | |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 382 | typedef float IEEE_binary32_w0_t; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 383 | |
| 384 | /*** <<< FUNC-DECLS [IEEE-binary32-w0] >>> ***/ |
| 385 | |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 386 | extern asn_per_constraints_t asn_PER_type_IEEE_binary32_w0_constr_1; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 387 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_w0; |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 388 | extern const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_w0_specs_1; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 389 | asn_struct_free_f IEEE_binary32_w0_free; |
| 390 | asn_struct_print_f IEEE_binary32_w0_print; |
| 391 | asn_constr_check_f IEEE_binary32_w0_constraint; |
| 392 | ber_type_decoder_f IEEE_binary32_w0_decode_ber; |
| 393 | der_type_encoder_f IEEE_binary32_w0_encode_der; |
| 394 | xer_type_decoder_f IEEE_binary32_w0_decode_xer; |
| 395 | xer_type_encoder_f IEEE_binary32_w0_encode_xer; |
| 396 | per_type_decoder_f IEEE_binary32_w0_decode_uper; |
| 397 | per_type_encoder_f IEEE_binary32_w0_encode_uper; |
| 398 | |
| 399 | /*** <<< CODE [IEEE-binary32-w0] >>> ***/ |
| 400 | |
| 401 | int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 402 | IEEE_binary32_w0_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 403 | 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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 427 | asn_per_constraints_t asn_PER_type_IEEE_binary32_w0_constr_1 CC_NOTUSED = { |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 428 | { 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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 435 | const asn_NativeReal_specifics_t asn_SPC_IEEE_binary32_w0_specs_1 = { |
| 436 | 4 /* Use 'float' type. */ |
| 437 | }; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 438 | static const ber_tlv_tag_t asn_DEF_IEEE_binary32_w0_tags_1[] = { |
| 439 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 440 | }; |
| 441 | asn_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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 453 | &asn_SPC_IEEE_binary32_w0_specs_1 /* Additional specs */ |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 454 | }; |
| 455 | |
| 456 | |
| 457 | /*** <<< INCLUDES [IEEE-binary64-w] >>> ***/ |
| 458 | |
| 459 | #include <NativeReal.h> |
| 460 | |
| 461 | /*** <<< TYPE-DECLS [IEEE-binary64-w] >>> ***/ |
| 462 | |
| 463 | typedef double IEEE_binary64_w_t; |
| 464 | |
| 465 | /*** <<< FUNC-DECLS [IEEE-binary64-w] >>> ***/ |
| 466 | |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 467 | extern asn_per_constraints_t asn_PER_type_IEEE_binary64_w_constr_1; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 468 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_w; |
| 469 | asn_struct_free_f IEEE_binary64_w_free; |
| 470 | asn_struct_print_f IEEE_binary64_w_print; |
| 471 | asn_constr_check_f IEEE_binary64_w_constraint; |
| 472 | ber_type_decoder_f IEEE_binary64_w_decode_ber; |
| 473 | der_type_encoder_f IEEE_binary64_w_encode_der; |
| 474 | xer_type_decoder_f IEEE_binary64_w_decode_xer; |
| 475 | xer_type_encoder_f IEEE_binary64_w_encode_xer; |
| 476 | per_type_decoder_f IEEE_binary64_w_decode_uper; |
| 477 | per_type_encoder_f IEEE_binary64_w_encode_uper; |
| 478 | |
| 479 | /*** <<< CODE [IEEE-binary64-w] >>> ***/ |
| 480 | |
| 481 | int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 482 | IEEE_binary64_w_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 483 | 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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 507 | asn_per_constraints_t asn_PER_type_IEEE_binary64_w_constr_1 CC_NOTUSED = { |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 508 | { 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 | |
| 515 | static const ber_tlv_tag_t asn_DEF_IEEE_binary64_w_tags_1[] = { |
| 516 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 517 | }; |
| 518 | asn_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 | |
| 540 | typedef double IEEE_binary64_0w_t; |
| 541 | |
| 542 | /*** <<< FUNC-DECLS [IEEE-binary64-0w] >>> ***/ |
| 543 | |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 544 | extern asn_per_constraints_t asn_PER_type_IEEE_binary64_0w_constr_1; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 545 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_0w; |
| 546 | asn_struct_free_f IEEE_binary64_0w_free; |
| 547 | asn_struct_print_f IEEE_binary64_0w_print; |
| 548 | asn_constr_check_f IEEE_binary64_0w_constraint; |
| 549 | ber_type_decoder_f IEEE_binary64_0w_decode_ber; |
| 550 | der_type_encoder_f IEEE_binary64_0w_encode_der; |
| 551 | xer_type_decoder_f IEEE_binary64_0w_decode_xer; |
| 552 | xer_type_encoder_f IEEE_binary64_0w_encode_xer; |
| 553 | per_type_decoder_f IEEE_binary64_0w_decode_uper; |
| 554 | per_type_encoder_f IEEE_binary64_0w_encode_uper; |
| 555 | |
| 556 | /*** <<< CODE [IEEE-binary64-0w] >>> ***/ |
| 557 | |
| 558 | int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 559 | IEEE_binary64_0w_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 560 | 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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 584 | asn_per_constraints_t asn_PER_type_IEEE_binary64_0w_constr_1 CC_NOTUSED = { |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 585 | { 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 | |
| 592 | static const ber_tlv_tag_t asn_DEF_IEEE_binary64_0w_tags_1[] = { |
| 593 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 594 | }; |
| 595 | asn_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 | |
| 617 | typedef double IEEE_binary64_w0_t; |
| 618 | |
| 619 | /*** <<< FUNC-DECLS [IEEE-binary64-w0] >>> ***/ |
| 620 | |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 621 | extern asn_per_constraints_t asn_PER_type_IEEE_binary64_w0_constr_1; |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 622 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_w0; |
| 623 | asn_struct_free_f IEEE_binary64_w0_free; |
| 624 | asn_struct_print_f IEEE_binary64_w0_print; |
| 625 | asn_constr_check_f IEEE_binary64_w0_constraint; |
| 626 | ber_type_decoder_f IEEE_binary64_w0_decode_ber; |
| 627 | der_type_encoder_f IEEE_binary64_w0_encode_der; |
| 628 | xer_type_decoder_f IEEE_binary64_w0_decode_xer; |
| 629 | xer_type_encoder_f IEEE_binary64_w0_encode_xer; |
| 630 | per_type_decoder_f IEEE_binary64_w0_decode_uper; |
| 631 | per_type_encoder_f IEEE_binary64_w0_encode_uper; |
| 632 | |
| 633 | /*** <<< CODE [IEEE-binary64-w0] >>> ***/ |
| 634 | |
| 635 | int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 636 | IEEE_binary64_w0_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 637 | 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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 661 | asn_per_constraints_t asn_PER_type_IEEE_binary64_w0_constr_1 CC_NOTUSED = { |
Lev Walkin | 026e21a | 2017-10-04 00:49:01 -0700 | [diff] [blame] | 662 | { 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 | |
| 669 | static const ber_tlv_tag_t asn_DEF_IEEE_binary64_w0_tags_1[] = { |
| 670 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 671 | }; |
| 672 | asn_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 Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 687 | |
| 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 | |
| 701 | typedef 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) */ |
| 720 | extern asn_TYPE_descriptor_t asn_DEF_Test; |
| 721 | |
| 722 | /*** <<< CODE [Test] >>> ***/ |
| 723 | |
| 724 | static int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 725 | indirect_ieee_binary32_2_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 726 | 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 | */ |
| 747 | static int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 748 | ieee_binary32_w_3_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 749 | 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 | */ |
| 770 | static int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 771 | ieee_binary32_0w_4_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 772 | 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 | */ |
| 793 | static int |
Lev Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 794 | ieee_binary32_w0_5_constraint(const asn_TYPE_descriptor_t *td, const void *sptr, |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 795 | 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 | |
| 819 | static 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 | }; |
| 824 | static 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 | }; |
| 829 | static 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 | }; |
| 834 | static 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 | |
| 842 | static const asn_NativeReal_specifics_t asn_SPC_indirect_ieee_binary32_specs_2 = { |
| 843 | 4 /* Use 'float' type. */ |
| 844 | }; |
| 845 | static const ber_tlv_tag_t asn_DEF_indirect_ieee_binary32_tags_2[] = { |
| 846 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 847 | }; |
| 848 | static /* Use -fall-defs-global to expose */ |
| 849 | asn_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 | |
| 864 | static const asn_NativeReal_specifics_t asn_SPC_ieee_binary32_w_specs_3 = { |
| 865 | 4 /* Use 'float' type. */ |
| 866 | }; |
| 867 | static const ber_tlv_tag_t asn_DEF_ieee_binary32_w_tags_3[] = { |
| 868 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 869 | }; |
| 870 | static /* Use -fall-defs-global to expose */ |
| 871 | asn_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 | |
| 886 | static const asn_NativeReal_specifics_t asn_SPC_ieee_binary32_0w_specs_4 = { |
| 887 | 4 /* Use 'float' type. */ |
| 888 | }; |
| 889 | static const ber_tlv_tag_t asn_DEF_ieee_binary32_0w_tags_4[] = { |
| 890 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 891 | }; |
| 892 | static /* Use -fall-defs-global to expose */ |
| 893 | asn_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 | |
| 908 | static const asn_NativeReal_specifics_t asn_SPC_ieee_binary32_w0_specs_5 = { |
| 909 | 4 /* Use 'float' type. */ |
| 910 | }; |
| 911 | static const ber_tlv_tag_t asn_DEF_ieee_binary32_w0_tags_5[] = { |
| 912 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 913 | }; |
| 914 | static /* Use -fall-defs-global to expose */ |
| 915 | asn_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 | |
| 930 | static 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 Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 937 | 0, 0, /* No default value */ |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 938 | .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 Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 946 | 0, 0, /* No default value */ |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 947 | .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 Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 955 | 0, 0, /* No default value */ |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 956 | .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 Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 964 | 0, 0, /* No default value */ |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 965 | .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 Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 973 | 0, 0, /* No default value */ |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 974 | .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 Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 982 | 0, 0, /* No default value */ |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 983 | .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 Walkin | 20696a4 | 2017-10-17 21:27:33 -0700 | [diff] [blame] | 991 | 0, 0, /* No default value */ |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 992 | .name = "ieee-binary64-w0" |
| 993 | }, |
| 994 | }; |
| 995 | static const ber_tlv_tag_t asn_DEF_Test_tags_1[] = { |
| 996 | (ASN_TAG_CLASS_UNIVERSAL | (16 << 2)) |
| 997 | }; |
| 998 | static 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 | }; |
| 1007 | static 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 Walkin | df2edbb | 2017-10-21 13:40:07 -0700 | [diff] [blame] | 1013 | -1, /* First extension addition */ |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 1014 | }; |
| 1015 | asn_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 | |