From 8ce3737178f65ef5096ad9728f23cd451e89ac72 Mon Sep 17 00:00:00 2001 From: Bruce Forstall Date: Tue, 11 Apr 2017 16:36:18 -0700 Subject: Merge similar arm32/arm64 codegen functions --- src/jit/emitarm.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/jit/emitarm.h') diff --git a/src/jit/emitarm.h b/src/jit/emitarm.h index 4ec189385c..ec42667163 100644 --- a/src/jit/emitarm.h +++ b/src/jit/emitarm.h @@ -232,6 +232,13 @@ inline static bool insOptsROR(insOpts opt) return (opt == INS_OPTS_ROR); } +// Returns the number of bits used by the given 'size'. +inline static unsigned getBitWidth(emitAttr size) +{ + assert(size <= EA_8BYTE); + return (unsigned)size * BITS_PER_BYTE; +} + /************************************************************************/ /* The public entry points to output instructions */ /************************************************************************/ -- cgit v1.2.3