comparison src/colour4.cc @ 109:f05330267c66

Use stdint types.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 06 Oct 2014 12:59:23 +0300
parents 2f1ecc1c5f72
children
comparison
equal deleted inserted replaced
108:c91965fc33b6 109:f05330267c66
56 /* 56 /*
57 * eight2sixteen 57 * eight2sixteen
58 * Convert an 8-bit RGB component value to a 16-bit one. 58 * Convert an 8-bit RGB component value to a 16-bit one.
59 * Will convert 00h to 0000h, 80h to 8080h and FFh to FFFFh. 59 * Will convert 00h to 0000h, 80h to 8080h and FFh to FFFFh.
60 */ 60 */
61 static inline u16 eight2sixteen(u8 v) 61 static inline uint16_t eight2sixteen(uint8_t v)
62 { 62 {
63 return (v << 8) | v; 63 return (v << 8) | v;
64 } 64 }
65 65
66 66