| 1882 | // |
| 1883 | |
| 1884 | inline void wenc14(unsigned short a, unsigned short b, unsigned short &l, |
| 1885 | unsigned short &h) { |
| 1886 | short as = static_cast<short>(a); |
| 1887 | short bs = static_cast<short>(b); |
| 1888 | |
| 1889 | short ms = (as + bs) >> 1; |
| 1890 | short ds = as - bs; |
| 1891 | |
| 1892 | l = static_cast<unsigned short>(ms); |
| 1893 | h = static_cast<unsigned short>(ds); |
| 1894 | } |
| 1895 | |
| 1896 | inline void wdec14(unsigned short l, unsigned short h, unsigned short &a, |
| 1897 | unsigned short &b) { |