summaryrefslogtreecommitdiff
path: root/src/jit/emitarm.h
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2017-04-11 16:36:18 -0700
committerBruce Forstall <brucefo@microsoft.com>2017-04-11 16:36:18 -0700
commit8ce3737178f65ef5096ad9728f23cd451e89ac72 (patch)
tree855538032bc7f6a3c267d177a028f1be7134b1e1 /src/jit/emitarm.h
parent574803904f3dfb9afa0691c8c675c878c67d2e22 (diff)
downloadcoreclr-8ce3737178f65ef5096ad9728f23cd451e89ac72.tar.gz
coreclr-8ce3737178f65ef5096ad9728f23cd451e89ac72.tar.bz2
coreclr-8ce3737178f65ef5096ad9728f23cd451e89ac72.zip
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 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 */
/************************************************************************/