mirror of
https://github.com/DrasLorus/HLS_arbitrary_Precision_Types.git
synced 2024-07-06 14:35:18 +02:00
Fix calling clearUnusedBits from volatile member functions
This commit is contained in:
parent
f4993df359
commit
68d27300a1
|
@ -2097,7 +2097,7 @@ ASSIGN_OP_FROM_INT(double)
|
||||||
|
|
||||||
INLINE void set(const ap_private& val) { operator=(val); }
|
INLINE void set(const ap_private& val) { operator=(val); }
|
||||||
|
|
||||||
INLINE void clearUnusedBits(void)
|
INLINE void clearUnusedBits(void) volatile
|
||||||
// just for clang compiler
|
// just for clang compiler
|
||||||
#if defined(__clang__) && !defined(__CLANG_3_1__)
|
#if defined(__clang__) && !defined(__CLANG_3_1__)
|
||||||
__attribute__((no_sanitize("undefined")))
|
__attribute__((no_sanitize("undefined")))
|
||||||
|
@ -3387,7 +3387,7 @@ class ap_private<_AP_W, _AP_S, false> {
|
||||||
/// significant word is assigned a value to ensure that those bits are
|
/// significant word is assigned a value to ensure that those bits are
|
||||||
/// zero'd out.
|
/// zero'd out.
|
||||||
/// @brief Clear unused high order bits
|
/// @brief Clear unused high order bits
|
||||||
INLINE void clearUnusedBits(void)
|
INLINE void clearUnusedBits(void) volatile
|
||||||
// just for clang compiler
|
// just for clang compiler
|
||||||
#if defined(__clang__) && !defined(__CLANG_3_1__)
|
#if defined(__clang__) && !defined(__CLANG_3_1__)
|
||||||
__attribute__((no_sanitize("undefined")))
|
__attribute__((no_sanitize("undefined")))
|
||||||
|
|
Loading…
Reference in a new issue