Ignore:
Timestamp:
Jul 25, 2025, 3:29:48 PM (3 months ago)
Author:
Mike Brooks <mlbrooks@…>
Branches:
master
Children:
1eea589f, 29c6a7d
Parents:
7640ff5
Message:

Add code for reproducing performance numbers in thesis draft of 16a843

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/benchmarks/list/fx-lq-list.h

    r7640ff5 r7806f91  
    22#include <assert.h>
    33#include <stddef.h>
     4#include <stdbool.h>
    45
    56#define HEADNAME_(S)                             S ## Head
     
    1516#define BFX_INSERT_BEFORE(S, lst, item, refIter) ({LIST_INSERT_BEFORE(refIter, &item, xx); &item;})
    1617#define BFX_INSERT_AFTER(S, lst, item, refIter)  ({LIST_INSERT_AFTER(refIter, &item, xx); &item;})
    17 #define BFX_REMOVE_FIRST(S, lst)                 LIST_REMOVE( LIST_FIRST( &lst ), xx )
     18#define BFX_REMOVE_FIRST(S, lst)                 ({ S * first = LIST_FIRST( &lst ); LIST_REMOVE( first, xx ); })
    1819#define BFX_REMOVE_LAST(S, lst)                  assert(false&&"unimplemented REMOVE_LAST on lq-list")
    1920#define BFX_REMOVE_HERE(S, lst, refIter)         LIST_REMOVE( refIter, xx )
Note: See TracChangeset for help on using the changeset viewer.