File: get.c

package info (click to toggle)
bglibs 2.04%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,368 kB
  • sloc: ansic: 15,820; perl: 674; sh: 64; makefile: 26
file content (16 lines) | stat: -rw-r--r-- 270 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <string.h>
#include "uint16.h"

#ifndef __INLINE_UINT_LSB
uint16 uint16_get_lsb(const unsigned char s[2])
{
  return (s[1] << 8) + s[0];
}
#endif

#ifndef __INLINE_UINT_MSB
uint16 uint16_get_msb(const unsigned char s[2])
{
  return (s[0] << 8) + s[1];
}
#endif