Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Nov 19, 2019
1 parent af5ebec commit ee3022f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/wasm-features.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ struct FeatureSet {

bool isMVP() const { return features == MVP; }
bool has(Feature f) { return (features & f) == f; }
bool hasAtomics() const { return bool(features & Atomics); }
bool hasMutableGlobals() const { return bool(features & MutableGlobals); }
bool hasTruncSat() const { return bool(features & TruncSat); }
bool hasSIMD() const { return bool(features & SIMD); }
bool hasBulkMemory() const { return bool(features & BulkMemory); }
bool hasSignExt() const { return bool(features & SignExt); }
bool hasAtomics() const { return (features & Atomics) != 0; }
bool hasMutableGlobals() const { return (features & MutableGlobals) != 0; }
bool hasTruncSat() const { return (features & TruncSat) != 0; }
bool hasSIMD() const { return (features & SIMD) != 0; }
bool hasBulkMemory() const { return (features & BulkMemory) != 0; }
bool hasSignExt() const { return (features & SignExt) != 0; }
bool hasExceptionHandling() const {
return bool(features & ExceptionHandling);
return (features & ExceptionHandling) != 0;
}
bool hasTailCall() const { return bool(features & TailCall); }
bool hasReferenceTypes() const { return bool(features & ReferenceTypes); }
bool hasAll() const { return bool(features & All); }
bool hasTailCall() const { return (features & TailCall) != 0; }
bool hasReferenceTypes() const { return (features & ReferenceTypes) != 0; }
bool hasAll() const { return (features & All) != 0; }

void makeMVP() { features = MVP; }
void set(Feature f, bool v = true) {
Expand Down

0 comments on commit ee3022f

Please sign in to comment.