Skip to content

Commit

Permalink
Use const
Browse files Browse the repository at this point in the history
  • Loading branch information
bryates committed Dec 9, 2024
1 parent 173f762 commit 701111f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions TrackletAlgorithm/MatchEngineUnit.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ inline void step(const VMStub<VMSType> stubmem[4][1<<(kNbitsrzbinMP+kNbitsphibin
#endif

inline void set_empty() {
empty_ = emptyUnit<MatchEngineUnitBase<VMProjType>::kNBitsBuffer>()[(readindex_,writeindex_)];
empty_ = EmptyUnit[(readindex_,writeindex_)];
//empty_ = emptyUnit<MatchEngineUnitBase<VMProjType>::kNBitsBuffer>()[(readindex_,writeindex_)];
}

inline bool empty() const {
Expand All @@ -291,7 +292,8 @@ inline void step(const VMStub<VMSType> stubmem[4][1<<(kNbitsrzbinMP+kNbitsphibin
}

inline bool nearFull() {
return nearFull3Unit<MatchEngineUnitBase<VMProjType>::kNBitsBuffer>()[(readindex_,writeindex_)];
return NearFull[(readindex_,writeindex_)];
//return nearFull3Unit<MatchEngineUnitBase<VMProjType>::kNBitsBuffer>()[(readindex_,writeindex_)];
}

inline bool idle() {
Expand Down Expand Up @@ -426,6 +428,8 @@ inline void advance() {
static constexpr int projfinezbits = VMProjectionBase<VMProjType>::kVMProjFineZSize;
static constexpr int stubfinephibits = VMStubBase<VMSType>::kVMSFinePhiSize;
static constexpr int stubfinezbits = VMStubBase<VMSType>::kVMSFineZSize;
const ap_uint<(1 << (2 * MatchEngineUnitBase<VMProjType>::kNBitsBuffer))> EmptyUnit = emptyUnit<MatchEngineUnitBase<VMProjType>::kNBitsBuffer>();
const ap_uint<(1 << (2 * MatchEngineUnitBase<VMProjType>::kNBitsBuffer))> NearFull = nearFull3Unit<MatchEngineUnitBase<VMProjType>::kNBitsBuffer>();


#ifndef __SYNTHESIS__
Expand Down

0 comments on commit 701111f

Please sign in to comment.