Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions hls-fix-constexpr.patch
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 {
2 changes: 2 additions & 0 deletions hls.spec
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
%define runpath_opts -m examples
Source: git+https://github.com/%{github_user}/HLS_arbitrary_Precision_Types.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}-%{tag}.tgz
Patch0: hls-fix-uninitialized
Patch1: hls-fix-constexpr
Requires: gmake

%prep
%setup -n %{n}-%{realversion}
%patch0 -p1
%patch1 -p1

%build

Expand Down