Lev Walkin | 41ba1f2 | 2004-09-14 12:46:35 +0000 | [diff] [blame] | 1 | /*- |
| 2 | * Copyright (c) 2004 Lev Walkin <vlm@lionet.info>. All rights reserved. |
| 3 | * Redistribution and modifications are permitted subject to BSD license. |
| 4 | */ |
| 5 | /* |
| 6 | * This type differs from the standard REAL in that it is modelled using |
| 7 | * the fixed machine type (double), so it can hold only values of |
| 8 | * limited precision. There is no explicit type (i.e., NativeReal_t). |
Lev Walkin | 725883b | 2006-10-09 12:07:58 +0000 | [diff] [blame] | 9 | * Use of this type is normally enabled by -fnative-types. |
Lev Walkin | 41ba1f2 | 2004-09-14 12:46:35 +0000 | [diff] [blame] | 10 | */ |
| 11 | #ifndef ASN_TYPE_NativeReal_H |
| 12 | #define ASN_TYPE_NativeReal_H |
| 13 | |
Lev Walkin | 11c3e17 | 2004-09-24 21:00:50 +0000 | [diff] [blame] | 14 | #include <asn_application.h> |
Lev Walkin | 41ba1f2 | 2004-09-14 12:46:35 +0000 | [diff] [blame] | 15 | |
Lev Walkin | 21b41ac | 2005-07-24 09:03:44 +0000 | [diff] [blame] | 16 | #ifdef __cplusplus |
| 17 | extern "C" { |
| 18 | #endif |
| 19 | |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 20 | typedef struct asn_NativeReal_specifics_s { |
Lev Walkin | afcc891 | 2017-10-04 23:48:35 -0700 | [diff] [blame] | 21 | unsigned float_size; /* sizeof(float) or sizeof(double) */ |
Lev Walkin | b545070 | 2017-10-04 02:52:57 -0700 | [diff] [blame] | 22 | } asn_NativeReal_specifics_t; |
| 23 | |
Lev Walkin | 5e03376 | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 24 | extern asn_TYPE_descriptor_t asn_DEF_NativeReal; |
Bi-Ruei, Chiu | 1f87ac0 | 2017-08-20 01:25:45 +0800 | [diff] [blame] | 25 | extern asn_TYPE_operation_t asn_OP_NativeReal; |
Lev Walkin | 41ba1f2 | 2004-09-14 12:46:35 +0000 | [diff] [blame] | 26 | |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 27 | asn_struct_free_f NativeReal_free; |
| 28 | asn_struct_print_f NativeReal_print; |
Lev Walkin | cd2f48e | 2017-08-10 02:14:59 -0700 | [diff] [blame] | 29 | asn_struct_compare_f NativeReal_compare; |
Lev Walkin | 41ba1f2 | 2004-09-14 12:46:35 +0000 | [diff] [blame] | 30 | ber_type_decoder_f NativeReal_decode_ber; |
| 31 | der_type_encoder_f NativeReal_encode_der; |
Lev Walkin | 725883b | 2006-10-09 12:07:58 +0000 | [diff] [blame] | 32 | per_type_decoder_f NativeReal_decode_uper; |
| 33 | per_type_encoder_f NativeReal_encode_uper; |
Lev Walkin | ab1d1e1 | 2017-10-03 18:43:12 -0700 | [diff] [blame] | 34 | oer_type_decoder_f NativeReal_decode_oer; |
| 35 | oer_type_encoder_f NativeReal_encode_oer; |
| 36 | xer_type_decoder_f NativeReal_decode_xer; |
| 37 | xer_type_encoder_f NativeReal_encode_xer; |
Lev Walkin | a5972be | 2017-09-29 23:15:58 -0700 | [diff] [blame] | 38 | asn_random_fill_f NativeReal_random_fill; |
Lev Walkin | 41ba1f2 | 2004-09-14 12:46:35 +0000 | [diff] [blame] | 39 | |
Bi-Ruei, Chiu | 1fa31c9 | 2016-05-16 13:50:09 +0800 | [diff] [blame] | 40 | #define NativeReal_constraint asn_generic_no_constraint |
| 41 | |
Lev Walkin | 21b41ac | 2005-07-24 09:03:44 +0000 | [diff] [blame] | 42 | #ifdef __cplusplus |
| 43 | } |
| 44 | #endif |
| 45 | |
Lev Walkin | 41ba1f2 | 2004-09-14 12:46:35 +0000 | [diff] [blame] | 46 | #endif /* ASN_TYPE_NativeReal_H */ |