source: doc/theses/mike_brooks_MMath/benchmarks/list/op-stack-inslast-remelem.h @ 6740533e

Last change on this file since 6740533e was 2b01f8e, checked in by Mike Brooks <mlbrooks@…>, 21 months ago

Adjust LL perf to use a random layout of nodes in memory

  • Property mode set to 100644
File size: 526 bytes
Line 
1// stack:    inserts and removes happen at the same end
2// inslast:  stack's action happens at the end called "last", "tail" or "back"
3// remelem:  removes happen via an element-level operation and inserts happen via the api-provided "last"/"tail"/"back"
4
5#define BOP_TEARDOWN(lst, iters, remNo)      BFX_REMOVE_LAST(B_UserItem, lst)
6
7#define BOP_INSERT(lst, iters, insNo, item)  BFX_INSERT_LAST(B_UserItem, lst, (item))
8#define BOP_REMOVE(lst, iters, remNo)        BFX_REMOVE_HERE(B_UserItem, lst, iters[NumNodes-(remNo)-1])
Note: See TracBrowser for help on using the repository browser.