blob: b6d16d6c128968183ae951560de8b94200f94f82 [file] [log] [blame]
Lev Walkin41ba1f22004-09-14 12:46:35 +00001/*-
Lev Walkin20696a42017-10-17 21:27:33 -07002 * Copyright (c) 2004-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
Lev Walkin41ba1f22004-09-14 12:46:35 +00003 * 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 Walkin725883b2006-10-09 12:07:58 +00009 * Use of this type is normally enabled by -fnative-types.
Lev Walkin41ba1f22004-09-14 12:46:35 +000010 */
11#ifndef ASN_TYPE_NativeReal_H
12#define ASN_TYPE_NativeReal_H
13
Lev Walkin11c3e172004-09-24 21:00:50 +000014#include <asn_application.h>
Lev Walkin41ba1f22004-09-14 12:46:35 +000015
Lev Walkin21b41ac2005-07-24 09:03:44 +000016#ifdef __cplusplus
17extern "C" {
18#endif
19
Lev Walkinb5450702017-10-04 02:52:57 -070020typedef struct asn_NativeReal_specifics_s {
Lev Walkinafcc8912017-10-04 23:48:35 -070021 unsigned float_size; /* sizeof(float) or sizeof(double) */
Lev Walkinb5450702017-10-04 02:52:57 -070022} asn_NativeReal_specifics_t;
23
Lev Walkin5e033762004-09-29 13:26:15 +000024extern asn_TYPE_descriptor_t asn_DEF_NativeReal;
Bi-Ruei, Chiu1f87ac02017-08-20 01:25:45 +080025extern asn_TYPE_operation_t asn_OP_NativeReal;
Lev Walkin41ba1f22004-09-14 12:46:35 +000026
Lev Walkina9cc46e2004-09-22 16:06:28 +000027asn_struct_free_f NativeReal_free;
28asn_struct_print_f NativeReal_print;
Lev Walkincd2f48e2017-08-10 02:14:59 -070029asn_struct_compare_f NativeReal_compare;
Lev Walkin41ba1f22004-09-14 12:46:35 +000030ber_type_decoder_f NativeReal_decode_ber;
31der_type_encoder_f NativeReal_encode_der;
Lev Walkin725883b2006-10-09 12:07:58 +000032per_type_decoder_f NativeReal_decode_uper;
33per_type_encoder_f NativeReal_encode_uper;
Lev Walkinab1d1e12017-10-03 18:43:12 -070034oer_type_decoder_f NativeReal_decode_oer;
35oer_type_encoder_f NativeReal_encode_oer;
36xer_type_decoder_f NativeReal_decode_xer;
37xer_type_encoder_f NativeReal_encode_xer;
Lev Walkina5972be2017-09-29 23:15:58 -070038asn_random_fill_f NativeReal_random_fill;
Lev Walkin41ba1f22004-09-14 12:46:35 +000039
Bi-Ruei, Chiu1fa31c92016-05-16 13:50:09 +080040#define NativeReal_constraint asn_generic_no_constraint
41
Lev Walkin21b41ac2005-07-24 09:03:44 +000042#ifdef __cplusplus
43}
44#endif
45
Lev Walkin41ba1f22004-09-14 12:46:35 +000046#endif /* ASN_TYPE_NativeReal_H */