doh. make the new S16 and U16 checkers inline
git-svn-id: http://skia.googlecode.com/svn/trunk@442 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
d457775787
commit
90209caa68
@ -151,13 +151,13 @@ typedef uint8_t SkBool8;
|
||||
|
||||
/** Returns true if the value can be represented with signed 16bits
|
||||
*/
|
||||
static bool SkIsS16(long x) {
|
||||
static inline bool SkIsS16(long x) {
|
||||
return (int16_t)x == x;
|
||||
}
|
||||
|
||||
/** Returns true if the value can be represented with unsigned 16bits
|
||||
*/
|
||||
static bool SkIsU16(long x) {
|
||||
static inline bool SkIsU16(long x) {
|
||||
return (uint16_t)x == x;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user