ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/ecb.h
(Generate patch)

Comparing libecb/ecb.h (file contents):
Revision 1.169 by root, Sat Nov 21 20:56:38 2015 UTC vs.
Revision 1.170 by root, Sat Nov 21 21:14:55 2015 UTC

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
667ecb_function_ ecb_const uint32_t ecb_binary16_to_binary32 (uint16_t x); 667ecb_function_ ecb_const uint32_t ecb_binary16_to_binary32 (uint32_t x);
668ecb_function_ ecb_const uint32_t 668ecb_function_ ecb_const uint32_t
669ecb_binary16_to_binary32 (uint16_t x) 669ecb_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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines