diff options
author | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2020-07-27 16:06:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 16:06:53 +0200 |
commit | 40a9f41be8ec484728862eb065b9b6985909db33 (patch) | |
tree | a037a722e60dc06a8de6990ce9da0c50f2d7015f /src/FIFO.h | |
parent | 5c08207f359479fdd16fa8517f9d2a5e8fe52c63 (diff) | |
parent | dff14ca80ada883870131c7ff17d85866254ccc0 (diff) |
Merge branch 'master' into fix/aarch64-ci
Diffstat (limited to 'src/FIFO.h')
-rw-r--r-- | src/FIFO.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -102,6 +102,8 @@ public: bool IsEmpty() { return NumOccupied == 0; } bool IsFull() { return NumOccupied >= NumEntries; } + bool CanFit(u32 num) { return ((NumOccupied + num) <= NumEntries); } + private: u32 NumEntries; T* Entries; |