|
| 1 | +/*===================== begin_copyright_notice ================================== |
| 2 | +
|
| 3 | +Copyright (c) 2017 Intel Corporation |
| 4 | +
|
| 5 | +Permission is hereby granted, free of charge, to any person obtaining a |
| 6 | +copy of this software and associated documentation files (the |
| 7 | +"Software"), to deal in the Software without restriction, including |
| 8 | +without limitation the rights to use, copy, modify, merge, publish, |
| 9 | +distribute, sublicense, and/or sell copies of the Software, and to |
| 10 | +permit persons to whom the Software is furnished to do so, subject to |
| 11 | +the following conditions: |
| 12 | +
|
| 13 | +The above copyright notice and this permission notice shall be included |
| 14 | +in all copies or substantial portions of the Software. |
| 15 | +
|
| 16 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
| 17 | +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 18 | +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 19 | +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 20 | +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 21 | +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 22 | +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 23 | +
|
| 24 | +
|
| 25 | +======================= end_copyright_notice ==================================*/ |
| 26 | + |
| 27 | +#ifndef __IMF_INCLUDE_H__ |
| 28 | +#define __IMF_INCLUDE_H__ |
| 29 | +typedef unsigned char _iml_uint8_t; |
| 30 | +typedef unsigned short _iml_uint16_t; |
| 31 | +typedef unsigned int _iml_uint32_t; |
| 32 | +typedef unsigned long long _iml_v2_uint64_t; |
| 33 | +typedef char _iml_int8_t; |
| 34 | +typedef short _iml_int16_t; |
| 35 | +typedef int _iml_int32_t; |
| 36 | +typedef long long _iml_int64_t; |
| 37 | + |
| 38 | +typedef union |
| 39 | +{ |
| 40 | + _iml_uint32_t w; |
| 41 | + float f; |
| 42 | +} int_float; |
| 43 | +typedef union |
| 44 | +{ |
| 45 | + _iml_v2_uint64_t w; |
| 46 | + _iml_uint32_t w32[2]; |
| 47 | + _iml_int32_t s32[2]; |
| 48 | + double f; |
| 49 | +} int_double; |
| 50 | +typedef struct tag_iml_v2_dpdwords_t |
| 51 | +{ |
| 52 | + _iml_uint32_t lo_dword; |
| 53 | + _iml_uint32_t hi_dword; |
| 54 | +} _iml_v2_dpdwords_t; |
| 55 | +typedef union |
| 56 | +{ |
| 57 | + _iml_uint32_t hex[2]; |
| 58 | + |
| 59 | + _iml_v2_dpdwords_t dwords; |
| 60 | + double fp; |
| 61 | +} _iml_v2_dp_union_t; |
| 62 | + |
| 63 | +typedef union |
| 64 | +{ |
| 65 | + _iml_uint32_t hex[1]; |
| 66 | + |
| 67 | + float fp; |
| 68 | +} _iml_v2_sp_union_t; |
| 69 | + |
| 70 | +#endif |
0 commit comments