… | |
… | |
662 | } |
662 | } |
663 | #else |
663 | #else |
664 | #define ecb_array_length(name) (sizeof (name) / sizeof (name [0])) |
664 | #define ecb_array_length(name) (sizeof (name) / sizeof (name [0])) |
665 | #endif |
665 | #endif |
666 | |
666 | |
667 | ecb_function_ ecb_const uint32_t ecb_binary16_to_binary32 (uint16_t x); |
667 | ecb_function_ ecb_const uint32_t ecb_binary16_to_binary32 (uint32_t x); |
668 | ecb_function_ ecb_const uint32_t |
668 | ecb_function_ ecb_const uint32_t |
669 | ecb_binary16_to_binary32 (uint16_t x) |
669 | ecb_binary16_to_binary32 (uint32_t x) |
670 | { |
670 | { |
671 | unsigned int s = (x & 0x8000) << (31 - 15); |
671 | unsigned int s = (x & 0x8000) << (31 - 15); |
672 | int e = (x >> 10) & 0x001f; |
672 | int e = (x >> 10) & 0x001f; |
673 | unsigned int m = x & 0x03ff; |
673 | unsigned int m = x & 0x03ff; |
674 | |
674 | |