diff options
author | Bruce Forstall <brucefo@microsoft.com> | 2017-04-12 09:17:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 09:17:17 -0700 |
commit | 1211556a7d7b188bd2d2b8a769fd17f110cf7f8d (patch) | |
tree | a972f5f3e694b13c1c387a4f6bdc95736564b7db /src/jit/emitarm.h | |
parent | f9d39599448fc89cd48b0a55a34f5d5fded7fa42 (diff) | |
parent | 8ce3737178f65ef5096ad9728f23cd451e89ac72 (diff) | |
download | coreclr-1211556a7d7b188bd2d2b8a769fd17f110cf7f8d.tar.gz coreclr-1211556a7d7b188bd2d2b8a769fd17f110cf7f8d.tar.bz2 coreclr-1211556a7d7b188bd2d2b8a769fd17f110cf7f8d.zip |
Merge pull request #10904 from BruceForstall/ArmMergeCodegenFuncs
Merge similar arm32/arm64 codegen functions
Diffstat (limited to 'src/jit/emitarm.h')
-rw-r--r-- | src/jit/emitarm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/jit/emitarm.h b/src/jit/emitarm.h index d7c8d4d0ef..1e286e8425 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 */ /************************************************************************/ |