Ignore:
Timestamp:
Apr 25, 2025, 7:39:09 AM (5 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
65bd3c2
Parents:
b195498
Message:

change backquote call to regular call

Location:
tests/zombies/linked-list-perf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tests/zombies/linked-list-perf/experiment.koad

    rb195498 r6b33e89  
    144144        for ( volatile unsigned int t = 0; t < Times; t += 1 ) {
    145145                Repeat( insert_last( lst, s[i] ) );
    146                 Repeat( remove( lst`first ) );
     146                Repeat( remove( first( lst ) ) );
    147147        }
    148148        end = clock();
     
    168168        for ( volatile unsigned int t = 0; t < Times; t += 1 ) {
    169169                Repeat( insert_last( lst, s[i] ) );
    170                 Repeat( remove( lst`first ) );
     170                Repeat( remove( first( lst ) ) );
    171171        }
    172172        end = clock();
  • tests/zombies/linked-list-perf/mike-old.hfa

    rb195498 r6b33e89  
    99// Author           : Michael Brooks
    1010// Created On       : Wed Apr 22 18:00:00 2020
    11 // Last Modified By : Michael Brooks
    12 // Last Modified On : Wed Apr 22 18:00:00 2020
    13 // Update Count     : 1
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Mon Apr 21 17:32:37 2025
     13// Update Count     : 3
    1414//
    1515
     
    147147        }
    148148
    149         static inline Telem & ?`first( dlist(Tnode, Telem) &l ) {
     149        static inline Telem & first( dlist(Tnode, Telem) &l ) {
    150150                return * l.$links.next.elem;
    151151        }
     
    157157        #if !defined(NDEBUG) && (defined(__CFA_DEBUG__) || defined(__CFA_VERIFY__))
    158158        static bool $validate_fwd( dlist(Tnode, Telem) & this ) {
    159                 Tnode * it = & $tempcv_e2n( this`first );
     159                Tnode * it = & $tempcv_e2n( first( this ) );
    160160                if (!it) return (& this`last == 0p);
    161161
     
    170170        static bool $validate_rev( dlist(Tnode, Telem) & this ) {
    171171                Tnode * it = & $tempcv_e2n( this`last );
    172                 if (!it) return (& this`first == 0p);
     172                if (!it) return (& first( this ) == 0p);
    173173
    174174                while( $prev_link(*it).elem ) {
     
    176176                }
    177177
    178                 return ( it == & $tempcv_e2n( this`first ) ) &&
     178                return ( it == & $tempcv_e2n( first( this ) ) ) &&
    179179                           ( $prev_link(*it).is_terminator ) &&
    180180                           ( ((dlist(Tnode, Telem)*)$prev_link(*it).terminator) == &this );
Note: See TracChangeset for help on using the changeset viewer.