OSDN Git Service
(root)
/
stock
/
stock.osdn.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Logger/Logger.h: __linux__ changed to __unix__ to support build on cygwin
[stock/stock.osdn.git]
/
FX2
/
bytes.h
1
// basic byte macros
2
3
#ifndef _BYTES_H
4
#define _BYTES_H
5
6
// lower byte of 16-bit value
7
#define LB(x) ((x) & 0xff)
8
// higher byte of 16-bit value
9
#define HB(x) ((x) >> 8)
10
// combine H & L bytes into 16-bit value
11
#define HL(h,l) (((h)<<8) + l)
12
13
#endif // _BYTES_H