summaryrefslogtreecommitdiff
path: root/src/jit/emitarm.h
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2017-04-12 09:17:17 -0700
committerGitHub <noreply@github.com>2017-04-12 09:17:17 -0700
commit1211556a7d7b188bd2d2b8a769fd17f110cf7f8d (patch)
treea972f5f3e694b13c1c387a4f6bdc95736564b7db /src/jit/emitarm.h
parentf9d39599448fc89cd48b0a55a34f5d5fded7fa42 (diff)
parent8ce3737178f65ef5096ad9728f23cd451e89ac72 (diff)
downloadcoreclr-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.h7
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 */
/************************************************************************/