Cleaning up a bit in prep for float/vec.

This commit is contained in:
Ben Vanik 2014-01-26 21:04:30 -08:00
parent 1518523651
commit 1988edfd55
2 changed files with 1344 additions and 1243 deletions

File diff suppressed because it is too large Load Diff

View File

@ -34,7 +34,13 @@ enum TypeName {
};
static bool IsIntType(TypeName type_name) {
return type_name < 4;
return type_name <= INT64_TYPE;
}
static bool IsFloatType(TypeName type_name) {
return type_name == FLOAT32_TYPE || type_name == FLOAT64_TYPE;
}
static bool IsVecType(TypeName type_name) {
return type_name == VEC128_TYPE;
}
enum ValueFlags {