-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9193 from cms-sw/hls-constexpr-patch
[HLS] Apply constexpr patch
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/include/ap_int_base.h b/include/ap_int_base.h | ||
index 091552a..1d30fea 100644 | ||
--- a/include/ap_int_base.h | ||
+++ b/include/ap_int_base.h | ||
@@ -122,7 +122,7 @@ struct ap_int_base : public _AP_ROOT_TYPE<_AP_W, _AP_S> { | ||
*/ | ||
typedef typename retval<AP_MAX((_AP_W + 7) / 8, 8), _AP_S>::Type RetType; | ||
|
||
- static const int width = _AP_W; | ||
+ constexpr static const int width = _AP_W; | ||
|
||
template <int _AP_W2, bool _AP_S2> | ||
struct RType { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters