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 |
| 75 | WeirdlyConstrainedREAL_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 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 | |
| 133 | /*** <<< INCLUDES [IEEE-binary32-w] >>> ***/ |
| 134 | |
| 135 | #include <NativeReal.h> |
| 136 | |
| 137 | /*** <<< TYPE-DECLS [IEEE-binary32-w] >>> ***/ |
| 138 | |
| 139 | typedef double IEEE_binary32_w_t; |
| 140 | |
| 141 | /*** <<< FUNC-DECLS [IEEE-binary32-w] >>> ***/ |
| 142 | |
| 143 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_w; |
| 144 | asn_struct_free_f IEEE_binary32_w_free; |
| 145 | asn_struct_print_f IEEE_binary32_w_print; |
| 146 | asn_constr_check_f IEEE_binary32_w_constraint; |
| 147 | ber_type_decoder_f IEEE_binary32_w_decode_ber; |
| 148 | der_type_encoder_f IEEE_binary32_w_encode_der; |
| 149 | xer_type_decoder_f IEEE_binary32_w_decode_xer; |
| 150 | xer_type_encoder_f IEEE_binary32_w_encode_xer; |
| 151 | per_type_decoder_f IEEE_binary32_w_decode_uper; |
| 152 | per_type_encoder_f IEEE_binary32_w_encode_uper; |
| 153 | |
| 154 | /*** <<< CODE [IEEE-binary32-w] >>> ***/ |
| 155 | |
| 156 | int |
| 157 | IEEE_binary32_w_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 158 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 159 | |
| 160 | if(!sptr) { |
| 161 | ASN__CTFAIL(app_key, td, sptr, |
| 162 | "%s: value not given (%s:%d)", |
| 163 | td->name, __FILE__, __LINE__); |
| 164 | return -1; |
| 165 | } |
| 166 | |
| 167 | |
| 168 | if(1 /* No applicable constraints whatsoever */) { |
| 169 | /* Nothing is here. See below */ |
| 170 | } |
| 171 | |
| 172 | return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); |
| 173 | } |
| 174 | |
| 175 | /* |
| 176 | * This type is implemented using NativeReal, |
| 177 | * so here we adjust the DEF accordingly. |
| 178 | */ |
| 179 | |
| 180 | /*** <<< CTDEFS [IEEE-binary32-w] >>> ***/ |
| 181 | |
| 182 | static asn_per_constraints_t asn_PER_type_IEEE_binary32_w_constr_1 CC_NOTUSED = { |
| 183 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 184 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 185 | 0, 0 /* No PER value map */ |
| 186 | }; |
| 187 | |
| 188 | /*** <<< STAT-DEFS [IEEE-binary32-w] >>> ***/ |
| 189 | |
| 190 | static const ber_tlv_tag_t asn_DEF_IEEE_binary32_w_tags_1[] = { |
| 191 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 192 | }; |
| 193 | asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_w = { |
| 194 | "IEEE-binary32-w", |
| 195 | "IEEE-binary32-w", |
| 196 | &asn_OP_NativeReal, |
| 197 | asn_DEF_IEEE_binary32_w_tags_1, |
| 198 | sizeof(asn_DEF_IEEE_binary32_w_tags_1) |
| 199 | /sizeof(asn_DEF_IEEE_binary32_w_tags_1[0]), /* 1 */ |
| 200 | asn_DEF_IEEE_binary32_w_tags_1, /* Same as above */ |
| 201 | sizeof(asn_DEF_IEEE_binary32_w_tags_1) |
| 202 | /sizeof(asn_DEF_IEEE_binary32_w_tags_1[0]), /* 1 */ |
| 203 | { 0, &asn_PER_type_IEEE_binary32_w_constr_1, IEEE_binary32_w_constraint }, |
| 204 | 0, 0, /* No members */ |
| 205 | 0 /* No specifics */ |
| 206 | }; |
| 207 | |
| 208 | |
| 209 | /*** <<< INCLUDES [IEEE-binary32-0w] >>> ***/ |
| 210 | |
| 211 | #include <NativeReal.h> |
| 212 | |
| 213 | /*** <<< TYPE-DECLS [IEEE-binary32-0w] >>> ***/ |
| 214 | |
| 215 | typedef double IEEE_binary32_0w_t; |
| 216 | |
| 217 | /*** <<< FUNC-DECLS [IEEE-binary32-0w] >>> ***/ |
| 218 | |
| 219 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_0w; |
| 220 | asn_struct_free_f IEEE_binary32_0w_free; |
| 221 | asn_struct_print_f IEEE_binary32_0w_print; |
| 222 | asn_constr_check_f IEEE_binary32_0w_constraint; |
| 223 | ber_type_decoder_f IEEE_binary32_0w_decode_ber; |
| 224 | der_type_encoder_f IEEE_binary32_0w_encode_der; |
| 225 | xer_type_decoder_f IEEE_binary32_0w_decode_xer; |
| 226 | xer_type_encoder_f IEEE_binary32_0w_encode_xer; |
| 227 | per_type_decoder_f IEEE_binary32_0w_decode_uper; |
| 228 | per_type_encoder_f IEEE_binary32_0w_encode_uper; |
| 229 | |
| 230 | /*** <<< CODE [IEEE-binary32-0w] >>> ***/ |
| 231 | |
| 232 | int |
| 233 | IEEE_binary32_0w_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 234 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 235 | |
| 236 | if(!sptr) { |
| 237 | ASN__CTFAIL(app_key, td, sptr, |
| 238 | "%s: value not given (%s:%d)", |
| 239 | td->name, __FILE__, __LINE__); |
| 240 | return -1; |
| 241 | } |
| 242 | |
| 243 | |
| 244 | if(1 /* No applicable constraints whatsoever */) { |
| 245 | /* Nothing is here. See below */ |
| 246 | } |
| 247 | |
| 248 | return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); |
| 249 | } |
| 250 | |
| 251 | /* |
| 252 | * This type is implemented using NativeReal, |
| 253 | * so here we adjust the DEF accordingly. |
| 254 | */ |
| 255 | |
| 256 | /*** <<< CTDEFS [IEEE-binary32-0w] >>> ***/ |
| 257 | |
| 258 | static asn_per_constraints_t asn_PER_type_IEEE_binary32_0w_constr_1 CC_NOTUSED = { |
| 259 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 260 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 261 | 0, 0 /* No PER value map */ |
| 262 | }; |
| 263 | |
| 264 | /*** <<< STAT-DEFS [IEEE-binary32-0w] >>> ***/ |
| 265 | |
| 266 | static const ber_tlv_tag_t asn_DEF_IEEE_binary32_0w_tags_1[] = { |
| 267 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 268 | }; |
| 269 | asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_0w = { |
| 270 | "IEEE-binary32-0w", |
| 271 | "IEEE-binary32-0w", |
| 272 | &asn_OP_NativeReal, |
| 273 | asn_DEF_IEEE_binary32_0w_tags_1, |
| 274 | sizeof(asn_DEF_IEEE_binary32_0w_tags_1) |
| 275 | /sizeof(asn_DEF_IEEE_binary32_0w_tags_1[0]), /* 1 */ |
| 276 | asn_DEF_IEEE_binary32_0w_tags_1, /* Same as above */ |
| 277 | sizeof(asn_DEF_IEEE_binary32_0w_tags_1) |
| 278 | /sizeof(asn_DEF_IEEE_binary32_0w_tags_1[0]), /* 1 */ |
| 279 | { 0, &asn_PER_type_IEEE_binary32_0w_constr_1, IEEE_binary32_0w_constraint }, |
| 280 | 0, 0, /* No members */ |
| 281 | 0 /* No specifics */ |
| 282 | }; |
| 283 | |
| 284 | |
| 285 | /*** <<< INCLUDES [IEEE-binary32-w0] >>> ***/ |
| 286 | |
| 287 | #include <NativeReal.h> |
| 288 | |
| 289 | /*** <<< TYPE-DECLS [IEEE-binary32-w0] >>> ***/ |
| 290 | |
| 291 | typedef double IEEE_binary32_w0_t; |
| 292 | |
| 293 | /*** <<< FUNC-DECLS [IEEE-binary32-w0] >>> ***/ |
| 294 | |
| 295 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_w0; |
| 296 | asn_struct_free_f IEEE_binary32_w0_free; |
| 297 | asn_struct_print_f IEEE_binary32_w0_print; |
| 298 | asn_constr_check_f IEEE_binary32_w0_constraint; |
| 299 | ber_type_decoder_f IEEE_binary32_w0_decode_ber; |
| 300 | der_type_encoder_f IEEE_binary32_w0_encode_der; |
| 301 | xer_type_decoder_f IEEE_binary32_w0_decode_xer; |
| 302 | xer_type_encoder_f IEEE_binary32_w0_encode_xer; |
| 303 | per_type_decoder_f IEEE_binary32_w0_decode_uper; |
| 304 | per_type_encoder_f IEEE_binary32_w0_encode_uper; |
| 305 | |
| 306 | /*** <<< CODE [IEEE-binary32-w0] >>> ***/ |
| 307 | |
| 308 | int |
| 309 | IEEE_binary32_w0_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 310 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 311 | |
| 312 | if(!sptr) { |
| 313 | ASN__CTFAIL(app_key, td, sptr, |
| 314 | "%s: value not given (%s:%d)", |
| 315 | td->name, __FILE__, __LINE__); |
| 316 | return -1; |
| 317 | } |
| 318 | |
| 319 | |
| 320 | if(1 /* No applicable constraints whatsoever */) { |
| 321 | /* Nothing is here. See below */ |
| 322 | } |
| 323 | |
| 324 | return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); |
| 325 | } |
| 326 | |
| 327 | /* |
| 328 | * This type is implemented using NativeReal, |
| 329 | * so here we adjust the DEF accordingly. |
| 330 | */ |
| 331 | |
| 332 | /*** <<< CTDEFS [IEEE-binary32-w0] >>> ***/ |
| 333 | |
| 334 | static asn_per_constraints_t asn_PER_type_IEEE_binary32_w0_constr_1 CC_NOTUSED = { |
| 335 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 336 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 337 | 0, 0 /* No PER value map */ |
| 338 | }; |
| 339 | |
| 340 | /*** <<< STAT-DEFS [IEEE-binary32-w0] >>> ***/ |
| 341 | |
| 342 | static const ber_tlv_tag_t asn_DEF_IEEE_binary32_w0_tags_1[] = { |
| 343 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 344 | }; |
| 345 | asn_TYPE_descriptor_t asn_DEF_IEEE_binary32_w0 = { |
| 346 | "IEEE-binary32-w0", |
| 347 | "IEEE-binary32-w0", |
| 348 | &asn_OP_NativeReal, |
| 349 | asn_DEF_IEEE_binary32_w0_tags_1, |
| 350 | sizeof(asn_DEF_IEEE_binary32_w0_tags_1) |
| 351 | /sizeof(asn_DEF_IEEE_binary32_w0_tags_1[0]), /* 1 */ |
| 352 | asn_DEF_IEEE_binary32_w0_tags_1, /* Same as above */ |
| 353 | sizeof(asn_DEF_IEEE_binary32_w0_tags_1) |
| 354 | /sizeof(asn_DEF_IEEE_binary32_w0_tags_1[0]), /* 1 */ |
| 355 | { 0, &asn_PER_type_IEEE_binary32_w0_constr_1, IEEE_binary32_w0_constraint }, |
| 356 | 0, 0, /* No members */ |
| 357 | 0 /* No specifics */ |
| 358 | }; |
| 359 | |
| 360 | |
| 361 | /*** <<< INCLUDES [IEEE-binary64-w] >>> ***/ |
| 362 | |
| 363 | #include <NativeReal.h> |
| 364 | |
| 365 | /*** <<< TYPE-DECLS [IEEE-binary64-w] >>> ***/ |
| 366 | |
| 367 | typedef double IEEE_binary64_w_t; |
| 368 | |
| 369 | /*** <<< FUNC-DECLS [IEEE-binary64-w] >>> ***/ |
| 370 | |
| 371 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_w; |
| 372 | asn_struct_free_f IEEE_binary64_w_free; |
| 373 | asn_struct_print_f IEEE_binary64_w_print; |
| 374 | asn_constr_check_f IEEE_binary64_w_constraint; |
| 375 | ber_type_decoder_f IEEE_binary64_w_decode_ber; |
| 376 | der_type_encoder_f IEEE_binary64_w_encode_der; |
| 377 | xer_type_decoder_f IEEE_binary64_w_decode_xer; |
| 378 | xer_type_encoder_f IEEE_binary64_w_encode_xer; |
| 379 | per_type_decoder_f IEEE_binary64_w_decode_uper; |
| 380 | per_type_encoder_f IEEE_binary64_w_encode_uper; |
| 381 | |
| 382 | /*** <<< CODE [IEEE-binary64-w] >>> ***/ |
| 383 | |
| 384 | int |
| 385 | IEEE_binary64_w_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 386 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 387 | |
| 388 | if(!sptr) { |
| 389 | ASN__CTFAIL(app_key, td, sptr, |
| 390 | "%s: value not given (%s:%d)", |
| 391 | td->name, __FILE__, __LINE__); |
| 392 | return -1; |
| 393 | } |
| 394 | |
| 395 | |
| 396 | if(1 /* No applicable constraints whatsoever */) { |
| 397 | /* Nothing is here. See below */ |
| 398 | } |
| 399 | |
| 400 | return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); |
| 401 | } |
| 402 | |
| 403 | /* |
| 404 | * This type is implemented using NativeReal, |
| 405 | * so here we adjust the DEF accordingly. |
| 406 | */ |
| 407 | |
| 408 | /*** <<< CTDEFS [IEEE-binary64-w] >>> ***/ |
| 409 | |
| 410 | static asn_per_constraints_t asn_PER_type_IEEE_binary64_w_constr_1 CC_NOTUSED = { |
| 411 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 412 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 413 | 0, 0 /* No PER value map */ |
| 414 | }; |
| 415 | |
| 416 | /*** <<< STAT-DEFS [IEEE-binary64-w] >>> ***/ |
| 417 | |
| 418 | static const ber_tlv_tag_t asn_DEF_IEEE_binary64_w_tags_1[] = { |
| 419 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 420 | }; |
| 421 | asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_w = { |
| 422 | "IEEE-binary64-w", |
| 423 | "IEEE-binary64-w", |
| 424 | &asn_OP_NativeReal, |
| 425 | asn_DEF_IEEE_binary64_w_tags_1, |
| 426 | sizeof(asn_DEF_IEEE_binary64_w_tags_1) |
| 427 | /sizeof(asn_DEF_IEEE_binary64_w_tags_1[0]), /* 1 */ |
| 428 | asn_DEF_IEEE_binary64_w_tags_1, /* Same as above */ |
| 429 | sizeof(asn_DEF_IEEE_binary64_w_tags_1) |
| 430 | /sizeof(asn_DEF_IEEE_binary64_w_tags_1[0]), /* 1 */ |
| 431 | { 0, &asn_PER_type_IEEE_binary64_w_constr_1, IEEE_binary64_w_constraint }, |
| 432 | 0, 0, /* No members */ |
| 433 | 0 /* No specifics */ |
| 434 | }; |
| 435 | |
| 436 | |
| 437 | /*** <<< INCLUDES [IEEE-binary64-0w] >>> ***/ |
| 438 | |
| 439 | #include <NativeReal.h> |
| 440 | |
| 441 | /*** <<< TYPE-DECLS [IEEE-binary64-0w] >>> ***/ |
| 442 | |
| 443 | typedef double IEEE_binary64_0w_t; |
| 444 | |
| 445 | /*** <<< FUNC-DECLS [IEEE-binary64-0w] >>> ***/ |
| 446 | |
| 447 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_0w; |
| 448 | asn_struct_free_f IEEE_binary64_0w_free; |
| 449 | asn_struct_print_f IEEE_binary64_0w_print; |
| 450 | asn_constr_check_f IEEE_binary64_0w_constraint; |
| 451 | ber_type_decoder_f IEEE_binary64_0w_decode_ber; |
| 452 | der_type_encoder_f IEEE_binary64_0w_encode_der; |
| 453 | xer_type_decoder_f IEEE_binary64_0w_decode_xer; |
| 454 | xer_type_encoder_f IEEE_binary64_0w_encode_xer; |
| 455 | per_type_decoder_f IEEE_binary64_0w_decode_uper; |
| 456 | per_type_encoder_f IEEE_binary64_0w_encode_uper; |
| 457 | |
| 458 | /*** <<< CODE [IEEE-binary64-0w] >>> ***/ |
| 459 | |
| 460 | int |
| 461 | IEEE_binary64_0w_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 462 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 463 | |
| 464 | if(!sptr) { |
| 465 | ASN__CTFAIL(app_key, td, sptr, |
| 466 | "%s: value not given (%s:%d)", |
| 467 | td->name, __FILE__, __LINE__); |
| 468 | return -1; |
| 469 | } |
| 470 | |
| 471 | |
| 472 | if(1 /* No applicable constraints whatsoever */) { |
| 473 | /* Nothing is here. See below */ |
| 474 | } |
| 475 | |
| 476 | return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); |
| 477 | } |
| 478 | |
| 479 | /* |
| 480 | * This type is implemented using NativeReal, |
| 481 | * so here we adjust the DEF accordingly. |
| 482 | */ |
| 483 | |
| 484 | /*** <<< CTDEFS [IEEE-binary64-0w] >>> ***/ |
| 485 | |
| 486 | static asn_per_constraints_t asn_PER_type_IEEE_binary64_0w_constr_1 CC_NOTUSED = { |
| 487 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 488 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 489 | 0, 0 /* No PER value map */ |
| 490 | }; |
| 491 | |
| 492 | /*** <<< STAT-DEFS [IEEE-binary64-0w] >>> ***/ |
| 493 | |
| 494 | static const ber_tlv_tag_t asn_DEF_IEEE_binary64_0w_tags_1[] = { |
| 495 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 496 | }; |
| 497 | asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_0w = { |
| 498 | "IEEE-binary64-0w", |
| 499 | "IEEE-binary64-0w", |
| 500 | &asn_OP_NativeReal, |
| 501 | asn_DEF_IEEE_binary64_0w_tags_1, |
| 502 | sizeof(asn_DEF_IEEE_binary64_0w_tags_1) |
| 503 | /sizeof(asn_DEF_IEEE_binary64_0w_tags_1[0]), /* 1 */ |
| 504 | asn_DEF_IEEE_binary64_0w_tags_1, /* Same as above */ |
| 505 | sizeof(asn_DEF_IEEE_binary64_0w_tags_1) |
| 506 | /sizeof(asn_DEF_IEEE_binary64_0w_tags_1[0]), /* 1 */ |
| 507 | { 0, &asn_PER_type_IEEE_binary64_0w_constr_1, IEEE_binary64_0w_constraint }, |
| 508 | 0, 0, /* No members */ |
| 509 | 0 /* No specifics */ |
| 510 | }; |
| 511 | |
| 512 | |
| 513 | /*** <<< INCLUDES [IEEE-binary64-w0] >>> ***/ |
| 514 | |
| 515 | #include <NativeReal.h> |
| 516 | |
| 517 | /*** <<< TYPE-DECLS [IEEE-binary64-w0] >>> ***/ |
| 518 | |
| 519 | typedef double IEEE_binary64_w0_t; |
| 520 | |
| 521 | /*** <<< FUNC-DECLS [IEEE-binary64-w0] >>> ***/ |
| 522 | |
| 523 | extern asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_w0; |
| 524 | asn_struct_free_f IEEE_binary64_w0_free; |
| 525 | asn_struct_print_f IEEE_binary64_w0_print; |
| 526 | asn_constr_check_f IEEE_binary64_w0_constraint; |
| 527 | ber_type_decoder_f IEEE_binary64_w0_decode_ber; |
| 528 | der_type_encoder_f IEEE_binary64_w0_encode_der; |
| 529 | xer_type_decoder_f IEEE_binary64_w0_decode_xer; |
| 530 | xer_type_encoder_f IEEE_binary64_w0_encode_xer; |
| 531 | per_type_decoder_f IEEE_binary64_w0_decode_uper; |
| 532 | per_type_encoder_f IEEE_binary64_w0_encode_uper; |
| 533 | |
| 534 | /*** <<< CODE [IEEE-binary64-w0] >>> ***/ |
| 535 | |
| 536 | int |
| 537 | IEEE_binary64_w0_constraint(asn_TYPE_descriptor_t *td, const void *sptr, |
| 538 | asn_app_constraint_failed_f *ctfailcb, void *app_key) { |
| 539 | |
| 540 | if(!sptr) { |
| 541 | ASN__CTFAIL(app_key, td, sptr, |
| 542 | "%s: value not given (%s:%d)", |
| 543 | td->name, __FILE__, __LINE__); |
| 544 | return -1; |
| 545 | } |
| 546 | |
| 547 | |
| 548 | if(1 /* No applicable constraints whatsoever */) { |
| 549 | /* Nothing is here. See below */ |
| 550 | } |
| 551 | |
| 552 | return td->encoding_constraints.general_constraints(td, sptr, ctfailcb, app_key); |
| 553 | } |
| 554 | |
| 555 | /* |
| 556 | * This type is implemented using NativeReal, |
| 557 | * so here we adjust the DEF accordingly. |
| 558 | */ |
| 559 | |
| 560 | /*** <<< CTDEFS [IEEE-binary64-w0] >>> ***/ |
| 561 | |
| 562 | static asn_per_constraints_t asn_PER_type_IEEE_binary64_w0_constr_1 CC_NOTUSED = { |
| 563 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 564 | { APC_UNCONSTRAINED, -1, -1, 0, 0 }, |
| 565 | 0, 0 /* No PER value map */ |
| 566 | }; |
| 567 | |
| 568 | /*** <<< STAT-DEFS [IEEE-binary64-w0] >>> ***/ |
| 569 | |
| 570 | static const ber_tlv_tag_t asn_DEF_IEEE_binary64_w0_tags_1[] = { |
| 571 | (ASN_TAG_CLASS_UNIVERSAL | (9 << 2)) |
| 572 | }; |
| 573 | asn_TYPE_descriptor_t asn_DEF_IEEE_binary64_w0 = { |
| 574 | "IEEE-binary64-w0", |
| 575 | "IEEE-binary64-w0", |
| 576 | &asn_OP_NativeReal, |
| 577 | asn_DEF_IEEE_binary64_w0_tags_1, |
| 578 | sizeof(asn_DEF_IEEE_binary64_w0_tags_1) |
| 579 | /sizeof(asn_DEF_IEEE_binary64_w0_tags_1[0]), /* 1 */ |
| 580 | asn_DEF_IEEE_binary64_w0_tags_1, /* Same as above */ |
| 581 | sizeof(asn_DEF_IEEE_binary64_w0_tags_1) |
| 582 | /sizeof(asn_DEF_IEEE_binary64_w0_tags_1[0]), /* 1 */ |
| 583 | { 0, &asn_PER_type_IEEE_binary64_w0_constr_1, IEEE_binary64_w0_constraint }, |
| 584 | 0, 0, /* No members */ |
| 585 | 0 /* No specifics */ |
| 586 | }; |
| 587 | |