LCOV - code coverage report
Current view: top level - flamenco/stakes - fd_stake_weight_sort.h (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 2 4 50.0 %
Date: 2026-09-17 04:28:31 Functions: 0 0 -

          Line data    Source code
       1             : #ifndef HEADER_fd_flamenco_stakes_fd_stake_weight_sort_h
       2             : #define HEADER_fd_flamenco_stakes_fd_stake_weight_sort_h
       3             : 
       4             : /* Sort instantiations for fd_stake_weight.h types.  Separate header so
       5             :    the ~110 TUs that only need the structs skip two fd_sort.c
       6             :    expansions. */
       7             : 
       8             : #include "fd_stake_weight.h"
       9             : 
      10             : #define SORT_NAME fd_stake_weight_key_sort
      11           0 : #define SORT_KEY_T fd_stake_weight_t
      12           0 : #define SORT_BEFORE(a,b) (memcmp( (a).key.uc, (b).key.uc, 32UL )<0)
      13             : #include "../../util/tmpl/fd_sort.c"
      14             : 
      15             : #define SORT_NAME sort_vote_weights_by_stake_vote
      16         156 : #define SORT_KEY_T fd_vote_stake_weight_t
      17          87 : #define SORT_BEFORE(a,b) ((a).stake > (b).stake ? 1 : ((a).stake < (b).stake ? 0 : memcmp( (a).vote_key.uc, (b).vote_key.uc, 32UL )>0))
      18             : #include "../../util/tmpl/fd_sort.c"
      19             : 
      20             : #endif /* HEADER_fd_flamenco_stakes_fd_stake_weight_sort_h */

Generated by: LCOV version 1.14