diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2017-04-13 14:17:19 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2017-04-13 14:17:19 +0900 |
commit | a56e30c8d33048216567753d9d3fefc2152af8ac (patch) | |
tree | 7e5d979695fc4a431740982eb1cfecc2898b23a5 /src/jit/utils.h | |
parent | 4b11dc566a5bbfa1378d6266525c281b028abcc8 (diff) | |
download | coreclr-a56e30c8d33048216567753d9d3fefc2152af8ac.tar.gz coreclr-a56e30c8d33048216567753d9d3fefc2152af8ac.tar.bz2 coreclr-a56e30c8d33048216567753d9d3fefc2152af8ac.zip |
Imported Upstream version 2.0.0.11353upstream/2.0.0.11353
Diffstat (limited to 'src/jit/utils.h')
-rw-r--r-- | src/jit/utils.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/jit/utils.h b/src/jit/utils.h index 1cd35903dd..b41cf84a1e 100644 --- a/src/jit/utils.h +++ b/src/jit/utils.h @@ -381,6 +381,15 @@ public: return m_value; } + // Mark the value as read only; explicitly change the variable to the "read" phase. + void MarkAsReadOnly() const + { +#ifdef DEBUG + assert(m_initialized); + (const_cast<PhasedVar*>(this))->m_writePhase = false; +#endif // DEBUG + } + // Functions/operators to write the value. Must be in the write phase. PhasedVar& operator=(const T& value) @@ -638,6 +647,8 @@ public: static unsigned __int64 convertDoubleToUInt64(double d); static double round(double x); + + static float round(float x); }; // The CLR requires that critical section locks be initialized via its ClrCreateCriticalSection API...but |