diff options
author | Steve MacLean <sdmaclea.qdt@qualcommdatacenter.com> | 2017-09-22 19:59:22 -0400 |
---|---|---|
committer | Bruce Forstall <brucefo@microsoft.com> | 2017-09-22 16:59:22 -0700 |
commit | 492d79e2a29ac36772e1e95b6dd3818959e99890 (patch) | |
tree | 5649e798dc3d89c85c0f1f8762f54ecd843cc660 /src/jit/emit.h | |
parent | 9d02629b1deaf8c45b57d3bdea545b0c50e2d749 (diff) | |
download | coreclr-492d79e2a29ac36772e1e95b6dd3818959e99890.tar.gz coreclr-492d79e2a29ac36772e1e95b6dd3818959e99890.tar.bz2 coreclr-492d79e2a29ac36772e1e95b6dd3818959e99890.zip |
[Arm64] Add Floor/Ceiling intrinsics (#14132)
* [Arm64] Add Floor/Ceiling intrinsics
* Templatize emitActualTypeSize
Diffstat (limited to 'src/jit/emit.h')
-rw-r--r-- | src/jit/emit.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/jit/emit.h b/src/jit/emit.h index a9dc076958..8c2b825fe7 100644 --- a/src/jit/emit.h +++ b/src/jit/emit.h @@ -2382,11 +2382,12 @@ inline emitAttr emitTypeSize(T type) extern const unsigned short emitTypeActSz[TYP_COUNT]; -inline emitAttr emitActualTypeSize(var_types type) +template <class T> +inline emitAttr emitActualTypeSize(T type) { - assert(type < TYP_COUNT); - assert(emitTypeActSz[type] > 0); - return (emitAttr)emitTypeActSz[type]; + assert(TypeGet(type) < TYP_COUNT); + assert(emitTypeActSz[TypeGet(type)] > 0); + return (emitAttr)emitTypeActSz[TypeGet(type)]; } /***************************************************************************** |