source:
doc/theses/mike_brooks_MMath/benchmarks/list/op-stack-insfirst-remelem.h@
e50b65c
| Last change on this file since e50b65c was 7806f91, checked in by , 9 months ago | |
|---|---|
|
|
| File size: 576 bytes | |
| Line | |
|---|---|
| 1 | // stack: inserts and removes happen at the same end |
| 2 | // insfirst: stack's action happens at the end called "first", "head" or "front" |
| 3 | // remelem: removes happen via an element-level operation and inserts happen via the api-provided "first"/"head"/"front" |
| 4 | |
| 5 | #define BOP_TEARDOWN(lst, iters, remNo) BFX_REMOVE_FIRST(B_UserItem, lst) |
| 6 | |
| 7 | #define BOP_INSERT(lst, iters, insNo, item) BFX_INSERT_FIRST(B_UserItem, lst, (item)) |
| 8 | #define BOP_REMOVE(lst, iters, remNo) BFX_REMOVE_HERE(B_UserItem, lst, iters[NumNodes-(remNo)-1]) |
| 9 | |
| 10 | #define BOP_REMPROGEND_IS_REMNO_BASED true |
Note:
See TracBrowser
for help on using the repository browser.