LCOV - code coverage report
Current view: top level - ballet/sha256 - fd_sha256_batch_avx512.c (source / functions) Hit Total Coverage
Test: cov.lcov Lines: 186 186 100.0 %
Date: 2026-11-09 04:27:00 Functions: 1 1 100.0 %

          Line data    Source code
       1             : #define FD_SHA256_BATCH_IMPL 2
       2             : 
       3             : #include "fd_sha256.h"
       4             : #include "fd_sha256_constants.h"
       5             : #include "../../util/simd/fd_avx512.h"
       6             : #include "../../util/simd/fd_avx.h"
       7             : 
       8             : FD_STATIC_ASSERT( FD_SHA256_BATCH_MAX==16UL, compat );
       9             : 
      10             : void
      11             : fd_sha256_private_batch_avx( ulong          batch_cnt,
      12             :                              void const *   batch_data,
      13             :                              ulong const *  batch_sz,
      14             :                              void * const * batch_hash );
      15             : 
      16             : void
      17             : fd_sha256_private_batch_avx512( ulong          batch_cnt,
      18             :                                 void const *   _batch_data,
      19             :                                 ulong const *  batch_sz,
      20     8980747 :                                 void * const * _batch_hash ) {
      21             : 
      22             :   /* If the batch is small enough, it is more efficient to use the
      23             :      narrow batched implementations.  The threshold for fallback depends
      24             :      on whether that itself narrower batched implementation is using
      25             :      SHA-NI acceleration for really small batches. */
      26             : 
      27     8980747 : # if FD_HAS_SHANI
      28     8980747 : # define MIN_BATCH_CNT (5UL)
      29             : # else
      30             : # define MIN_BATCH_CNT (2UL)
      31             : # endif
      32             : 
      33     8980747 :   if( FD_UNLIKELY( batch_cnt<MIN_BATCH_CNT ) ) {
      34     2625165 :     fd_sha256_private_batch_avx( batch_cnt, _batch_data, batch_sz, _batch_hash );
      35     2625165 :     return;
      36     2625165 :   }
      37             : 
      38     6355582 : # undef MIN_BATCH_CNT
      39             : 
      40             :   /* SHA appends to the end of each message 9 bytes of additional data
      41             :      (a messaging terminator byte and the big endian ulong with the
      42             :      message size in bits) and enough zero padding to make the message
      43             :      an integer number of blocks long.  We compute the 1 or 2 tail
      44             :      blocks of each message here.  We then process complete blocks of
      45             :      the original messages in place, switching to processing these tail
      46             :      blocks in the same pass toward the end.  TODO: This code could
      47             :      probably be SIMD optimized slightly more (this is where all the
      48             :      really performance suboptimally designed parts of SHA live so it is
      49             :      just inherently gross).  The main optimization would probably be to
      50             :      allow tail reading to use a faster memcpy and then maybe some
      51             :      vectorization of the bswap. */
      52             : 
      53     6355582 :   ulong const * batch_data = (ulong const *)_batch_data;
      54             : 
      55     6355582 :   ulong batch_tail_data[ FD_SHA256_BATCH_MAX ] __attribute__((aligned(64)));
      56     6355582 :   ulong batch_tail_rem [ FD_SHA256_BATCH_MAX ] __attribute__((aligned(64)));
      57             : 
      58     6355582 :   uchar scratch[ FD_SHA256_BATCH_MAX*2UL*FD_SHA256_PRIVATE_BUF_MAX ] __attribute__((aligned(128)));
      59     6355582 :   do {
      60     6355582 :     ulong scratch_free = (ulong)scratch;
      61             : 
      62     6355582 :     wwv_t zero = wwv_zero();
      63             : 
      64   101509217 :     for( ulong batch_idx=0UL; batch_idx<batch_cnt; batch_idx++ ) {
      65             : 
      66             :       /* Allocate the tail blocks for this message */
      67             : 
      68    95153635 :       ulong data = batch_data[ batch_idx ];
      69    95153635 :       ulong sz   = batch_sz  [ batch_idx ];
      70             : 
      71    95153635 :       ulong tail_data     = scratch_free;
      72    95153635 :       ulong tail_data_sz  = sz & (FD_SHA256_PRIVATE_BUF_MAX-1UL);
      73    95153635 :       ulong tail_data_off = fd_ulong_align_dn( sz,               FD_SHA256_PRIVATE_BUF_MAX );
      74    95153635 :       ulong tail_sz       = fd_ulong_align_up( tail_data_sz+9UL, FD_SHA256_PRIVATE_BUF_MAX );
      75             : 
      76    95153635 :       batch_tail_data[ batch_idx ] = tail_data;
      77    95153635 :       batch_tail_rem [ batch_idx ] = tail_sz >> FD_SHA256_PRIVATE_LG_BUF_MAX;
      78             : 
      79    95153635 :       scratch_free += tail_sz;
      80             : 
      81             :       /* Populate the tail blocks.  We first clear the blocks (note that
      82             :          it is okay to clobber bytes 64:127 if tail_sz only 64, saving a
      83             :          nasty branch).  Then we copy any straggler data bytes into the
      84             :          tail, terminate the message, and finally record the size of the
      85             :          message in bits at the end as a big endian ulong.  */
      86             : 
      87    95153635 :       wwv_st( (ulong *) tail_data,     zero );
      88    95153635 :       wwv_st( (ulong *)(tail_data+64), zero );
      89             : 
      90    95153635 : #     if 1
      91             :       /* Quick experiments found that, once again, straight memcpy is
      92             :          much slower than a fd_memcpy is slightly slower than a
      93             :          site-optimized handrolled memcpy (fd_memcpy would be less L1I
      94             :          cache footprint though).  They also found that doing the below
      95             :          in a branchless way is slightly worse and an ILP optimized
      96             :          version of the conditional calculation is about the same.  They
      97             :          also found that vectorizing the overall loop and/or Duffing the
      98             :          vectorized loop did not provide noticeable performance
      99             :          improvements under various styles of memcpy. */
     100    95153635 :       ulong src = data + tail_data_off;
     101    95153635 :       ulong dst = tail_data;
     102    95153635 :       ulong rem = tail_data_sz;
     103   122603797 :       while( rem>=32UL ) { wv_st( (ulong *)dst, wv_ldu( (ulong const *)src ) ); dst += 32UL; src += 32UL; rem -= 32UL; }
     104   172162784 :       while( rem>= 8UL ) { *(ulong  *)dst = FD_LOAD( ulong,  src );             dst +=  8UL; src +=  8UL; rem -=  8UL; }
     105    95153635 :       if   ( rem>= 4UL ) { *(uint   *)dst = FD_LOAD( uint,   src );             dst +=  4UL; src +=  4UL; rem -=  4UL; }
     106    95153635 :       if   ( rem>= 2UL ) { *(ushort *)dst = FD_LOAD( ushort, src );             dst +=  2UL; src +=  2UL; rem -=  2UL; }
     107    95153635 :       if   ( rem       ) { *(uchar  *)dst = FD_LOAD( uchar,  src );             dst++;                                 }
     108    95153635 :       *(uchar *)dst = (uchar)0x80;
     109             : #     else
     110             :       fd_memcpy( (void *)tail_data, (void const *)(data + tail_data_off), tail_data_sz );
     111             :       *((uchar *)(tail_data+tail_data_sz)) = (uchar)0x80;
     112             : #     endif
     113             : 
     114    95153635 :       *((ulong *)(tail_data+tail_sz-8UL )) = fd_ulong_bswap( sz<<3 );
     115    95153635 :     }
     116     6355582 :   } while(0);
     117             : 
     118     6355582 :   wwu_t s0 = wwu_bcast( FD_SHA256_INITIAL_A );
     119     6355582 :   wwu_t s1 = wwu_bcast( FD_SHA256_INITIAL_B );
     120     6355582 :   wwu_t s2 = wwu_bcast( FD_SHA256_INITIAL_C );
     121     6355582 :   wwu_t s3 = wwu_bcast( FD_SHA256_INITIAL_D );
     122     6355582 :   wwu_t s4 = wwu_bcast( FD_SHA256_INITIAL_E );
     123     6355582 :   wwu_t s5 = wwu_bcast( FD_SHA256_INITIAL_F );
     124     6355582 :   wwu_t s6 = wwu_bcast( FD_SHA256_INITIAL_G );
     125     6355582 :   wwu_t s7 = wwu_bcast( FD_SHA256_INITIAL_H );
     126             : 
     127     6355582 :   wwv_t zero       = wwv_zero();
     128     6355582 :   wwv_t one        = wwv_one();
     129     6355582 :   wwv_t wwv_64     = wwv_bcast( FD_SHA256_PRIVATE_BUF_MAX );
     130     6355582 :   wwv_t W_sentinel = wwv_bcast( (ulong)scratch );
     131             : 
     132     6355582 :   wwv_t tail_lo      = wwv_ld( batch_tail_data   ); wwv_t tail_hi      = wwv_ld( batch_tail_data+8 );
     133     6355582 :   wwv_t tail_rem_lo  = wwv_ld( batch_tail_rem    ); wwv_t tail_rem_hi  = wwv_ld( batch_tail_rem +8 );
     134     6355582 :   wwv_t W_lo         = wwv_ld( batch_data        ); wwv_t W_hi         = wwv_ld( batch_data     +8 );
     135             : 
     136     6355582 :   wwv_t block_rem_lo = wwv_if( ((1<<batch_cnt)-1) & 0xff,
     137     6355582 :                                wwv_add( wwv_shr( wwv_ld( batch_sz   ), FD_SHA256_PRIVATE_LG_BUF_MAX ), tail_rem_lo ), zero );
     138     6355582 :   wwv_t block_rem_hi = wwv_if( ((1<<batch_cnt)-1) >> 8,
     139     6355582 :                                wwv_add( wwv_shr( wwv_ld( batch_sz+8 ), FD_SHA256_PRIVATE_LG_BUF_MAX ), tail_rem_hi ), zero );
     140             : 
     141    65145594 :   for(;;) {
     142    65145594 :     int active_lane_lo = wwv_ne( block_rem_lo, zero );
     143    65145594 :     int active_lane_hi = wwv_ne( block_rem_hi, zero );
     144    65145594 :     if( FD_UNLIKELY( !(active_lane_lo | active_lane_hi) ) ) break;
     145             : 
     146             :     /* Switch lanes that have hit the end of their in-place bulk
     147             :        processing to their out-of-place scratch tail regions as
     148             :        necessary. */
     149             : 
     150    58790012 :     W_lo = wwv_if( wwv_eq( block_rem_lo, tail_rem_lo ), tail_lo, W_lo );
     151    58790012 :     W_hi = wwv_if( wwv_eq( block_rem_hi, tail_rem_hi ), tail_hi, W_hi );
     152             : 
     153             :     /* At this point, we have at least 1 block in this message segment
     154             :        pass that has not been processed.  Load the next 64 bytes of
     155             :        each unprocessed block.  Inactive lanes (e.g. message segments
     156             :        in this pass for which we've already processed all the blocks)
     157             :        will load garbage from a sentinel location (and the result of
     158             :        the state computations for the inactive lane will be ignored). */
     159             : 
     160    58790012 :     ulong _W0; ulong _W1; ulong _W2; ulong _W3; ulong _W4; ulong _W5; ulong _W6; ulong _W7;
     161    58790012 :     ulong _W8; ulong _W9; ulong _Wa; ulong _Wb; ulong _Wc; ulong _Wd; ulong _We; ulong _Wf;
     162    58790012 :     wwv_unpack( wwv_if( active_lane_lo, W_lo, W_sentinel ), _W0, _W1, _W2, _W3, _W4, _W5, _W6, _W7 );
     163    58790012 :     wwv_unpack( wwv_if( active_lane_hi, W_hi, W_sentinel ), _W8, _W9, _Wa, _Wb, _Wc, _Wd, _We, _Wf );
     164    58790012 :     uchar const * W0 = (uchar const *)_W0; uchar const * W1 = (uchar const *)_W1;
     165    58790012 :     uchar const * W2 = (uchar const *)_W2; uchar const * W3 = (uchar const *)_W3;
     166    58790012 :     uchar const * W4 = (uchar const *)_W4; uchar const * W5 = (uchar const *)_W5;
     167    58790012 :     uchar const * W6 = (uchar const *)_W6; uchar const * W7 = (uchar const *)_W7;
     168    58790012 :     uchar const * W8 = (uchar const *)_W8; uchar const * W9 = (uchar const *)_W9;
     169    58790012 :     uchar const * Wa = (uchar const *)_Wa; uchar const * Wb = (uchar const *)_Wb;
     170    58790012 :     uchar const * Wc = (uchar const *)_Wc; uchar const * Wd = (uchar const *)_Wd;
     171    58790012 :     uchar const * We = (uchar const *)_We; uchar const * Wf = (uchar const *)_Wf;
     172             : 
     173    58790012 :     wwu_t x0; wwu_t x1; wwu_t x2; wwu_t x3; wwu_t x4; wwu_t x5; wwu_t x6; wwu_t x7;
     174    58790012 :     wwu_t x8; wwu_t x9; wwu_t xa; wwu_t xb; wwu_t xc; wwu_t xd; wwu_t xe; wwu_t xf;
     175    58790012 :     wwu_transpose_16x16( wwu_bswap( wwu_ldu( W0 ) ), wwu_bswap( wwu_ldu( W1 ) ),
     176    58790012 :                          wwu_bswap( wwu_ldu( W2 ) ), wwu_bswap( wwu_ldu( W3 ) ),
     177    58790012 :                          wwu_bswap( wwu_ldu( W4 ) ), wwu_bswap( wwu_ldu( W5 ) ),
     178    58790012 :                          wwu_bswap( wwu_ldu( W6 ) ), wwu_bswap( wwu_ldu( W7 ) ),
     179    58790012 :                          wwu_bswap( wwu_ldu( W8 ) ), wwu_bswap( wwu_ldu( W9 ) ),
     180    58790012 :                          wwu_bswap( wwu_ldu( Wa ) ), wwu_bswap( wwu_ldu( Wb ) ),
     181    58790012 :                          wwu_bswap( wwu_ldu( Wc ) ), wwu_bswap( wwu_ldu( Wd ) ),
     182    58790012 :                          wwu_bswap( wwu_ldu( We ) ), wwu_bswap( wwu_ldu( Wf ) ),
     183    58790012 :                          x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, xa, xb, xc, xd, xe, xf );
     184             : 
     185             :     /* Compute the SHA-256 state updates */
     186             : 
     187    58790012 :     wwu_t a = s0; wwu_t b = s1; wwu_t c = s2; wwu_t d = s3; wwu_t e = s4; wwu_t f = s5; wwu_t g = s6; wwu_t h = s7;
     188             : 
     189             :     /* One vpternlogd per 3-input boolean; GCC does not fuse these. */
     190    58790012 : #   define Sigma0(x)  _mm512_ternarylogic_epi32( wwu_rol(x,30), wwu_rol(x,19), wwu_rol(x,10), 0x96 )
     191    58790012 : #   define Sigma1(x)  _mm512_ternarylogic_epi32( wwu_rol(x,26), wwu_rol(x,21), wwu_rol(x, 7), 0x96 )
     192    58790012 : #   define sigma0(x)  _mm512_ternarylogic_epi32( wwu_rol(x,25), wwu_rol(x,14), wwu_shr(x, 3), 0x96 )
     193    58790012 : #   define sigma1(x)  _mm512_ternarylogic_epi32( wwu_rol(x,15), wwu_rol(x,13), wwu_shr(x,10), 0x96 )
     194    58790012 : #   define Ch(x,y,z)  _mm512_ternarylogic_epi32( (x), (y), (z), 0xCA )
     195    58790012 : #   define Maj(x,y,z) _mm512_ternarylogic_epi32( (x), (y), (z), 0xE8 )
     196    58790012 : #   define SHA_CORE(xi,ki)                                                           \
     197  3762560768 :     T1 = wwu_add( wwu_add(xi,ki), wwu_add( wwu_add( h, Sigma1(e) ), Ch(e, f, g) ) ); \
     198  3762560768 :     T2 = wwu_add( Sigma0(a), Maj(a, b, c) );                                         \
     199  3762560768 :     h = g;                                                                           \
     200  3762560768 :     g = f;                                                                           \
     201  3762560768 :     f = e;                                                                           \
     202  3762560768 :     e = wwu_add( d, T1 );                                                            \
     203  3762560768 :     d = c;                                                                           \
     204  3762560768 :     c = b;                                                                           \
     205  3762560768 :     b = a;                                                                           \
     206  3762560768 :     a = wwu_add( T1, T2 )
     207             : 
     208    58790012 :     wwu_t T1;
     209    58790012 :     wwu_t T2;
     210             : 
     211    58790012 :     SHA_CORE( x0, wwu_bcast( fd_sha256_K[ 0] ) );
     212    58790012 :     SHA_CORE( x1, wwu_bcast( fd_sha256_K[ 1] ) );
     213    58790012 :     SHA_CORE( x2, wwu_bcast( fd_sha256_K[ 2] ) );
     214    58790012 :     SHA_CORE( x3, wwu_bcast( fd_sha256_K[ 3] ) );
     215    58790012 :     SHA_CORE( x4, wwu_bcast( fd_sha256_K[ 4] ) );
     216    58790012 :     SHA_CORE( x5, wwu_bcast( fd_sha256_K[ 5] ) );
     217    58790012 :     SHA_CORE( x6, wwu_bcast( fd_sha256_K[ 6] ) );
     218    58790012 :     SHA_CORE( x7, wwu_bcast( fd_sha256_K[ 7] ) );
     219    58790012 :     SHA_CORE( x8, wwu_bcast( fd_sha256_K[ 8] ) );
     220    58790012 :     SHA_CORE( x9, wwu_bcast( fd_sha256_K[ 9] ) );
     221    58790012 :     SHA_CORE( xa, wwu_bcast( fd_sha256_K[10] ) );
     222    58790012 :     SHA_CORE( xb, wwu_bcast( fd_sha256_K[11] ) );
     223    58790012 :     SHA_CORE( xc, wwu_bcast( fd_sha256_K[12] ) );
     224    58790012 :     SHA_CORE( xd, wwu_bcast( fd_sha256_K[13] ) );
     225    58790012 :     SHA_CORE( xe, wwu_bcast( fd_sha256_K[14] ) );
     226    58790012 :     SHA_CORE( xf, wwu_bcast( fd_sha256_K[15] ) );
     227   235160048 :     for( ulong i=16UL; i<64UL; i+=16UL ) {
     228   176370036 :       x0 = wwu_add( wwu_add( x0, sigma0(x1) ), wwu_add( sigma1(xe), x9 ) ); SHA_CORE( x0, wwu_bcast( fd_sha256_K[i     ] ) );
     229   176370036 :       x1 = wwu_add( wwu_add( x1, sigma0(x2) ), wwu_add( sigma1(xf), xa ) ); SHA_CORE( x1, wwu_bcast( fd_sha256_K[i+ 1UL] ) );
     230   176370036 :       x2 = wwu_add( wwu_add( x2, sigma0(x3) ), wwu_add( sigma1(x0), xb ) ); SHA_CORE( x2, wwu_bcast( fd_sha256_K[i+ 2UL] ) );
     231   176370036 :       x3 = wwu_add( wwu_add( x3, sigma0(x4) ), wwu_add( sigma1(x1), xc ) ); SHA_CORE( x3, wwu_bcast( fd_sha256_K[i+ 3UL] ) );
     232   176370036 :       x4 = wwu_add( wwu_add( x4, sigma0(x5) ), wwu_add( sigma1(x2), xd ) ); SHA_CORE( x4, wwu_bcast( fd_sha256_K[i+ 4UL] ) );
     233   176370036 :       x5 = wwu_add( wwu_add( x5, sigma0(x6) ), wwu_add( sigma1(x3), xe ) ); SHA_CORE( x5, wwu_bcast( fd_sha256_K[i+ 5UL] ) );
     234   176370036 :       x6 = wwu_add( wwu_add( x6, sigma0(x7) ), wwu_add( sigma1(x4), xf ) ); SHA_CORE( x6, wwu_bcast( fd_sha256_K[i+ 6UL] ) );
     235   176370036 :       x7 = wwu_add( wwu_add( x7, sigma0(x8) ), wwu_add( sigma1(x5), x0 ) ); SHA_CORE( x7, wwu_bcast( fd_sha256_K[i+ 7UL] ) );
     236   176370036 :       x8 = wwu_add( wwu_add( x8, sigma0(x9) ), wwu_add( sigma1(x6), x1 ) ); SHA_CORE( x8, wwu_bcast( fd_sha256_K[i+ 8UL] ) );
     237   176370036 :       x9 = wwu_add( wwu_add( x9, sigma0(xa) ), wwu_add( sigma1(x7), x2 ) ); SHA_CORE( x9, wwu_bcast( fd_sha256_K[i+ 9UL] ) );
     238   176370036 :       xa = wwu_add( wwu_add( xa, sigma0(xb) ), wwu_add( sigma1(x8), x3 ) ); SHA_CORE( xa, wwu_bcast( fd_sha256_K[i+10UL] ) );
     239   176370036 :       xb = wwu_add( wwu_add( xb, sigma0(xc) ), wwu_add( sigma1(x9), x4 ) ); SHA_CORE( xb, wwu_bcast( fd_sha256_K[i+11UL] ) );
     240   176370036 :       xc = wwu_add( wwu_add( xc, sigma0(xd) ), wwu_add( sigma1(xa), x5 ) ); SHA_CORE( xc, wwu_bcast( fd_sha256_K[i+12UL] ) );
     241   176370036 :       xd = wwu_add( wwu_add( xd, sigma0(xe) ), wwu_add( sigma1(xb), x6 ) ); SHA_CORE( xd, wwu_bcast( fd_sha256_K[i+13UL] ) );
     242   176370036 :       xe = wwu_add( wwu_add( xe, sigma0(xf) ), wwu_add( sigma1(xc), x7 ) ); SHA_CORE( xe, wwu_bcast( fd_sha256_K[i+14UL] ) );
     243   176370036 :       xf = wwu_add( wwu_add( xf, sigma0(x0) ), wwu_add( sigma1(xd), x8 ) ); SHA_CORE( xf, wwu_bcast( fd_sha256_K[i+15UL] ) );
     244   176370036 :     }
     245             : 
     246    58790012 : #   undef SHA_CORE
     247    58790012 : #   undef Sigma0
     248    58790012 : #   undef Sigma1
     249    58790012 : #   undef sigma0
     250    58790012 : #   undef sigma1
     251    58790012 : #   undef Ch
     252    58790012 : #   undef Maj
     253             : 
     254             :     /* Apply the state updates to the active lanes */
     255             : 
     256    58790012 :     int active_lane = active_lane_lo | (active_lane_hi<<8);
     257             : 
     258    58790012 :     s0 = wwu_add_if( active_lane, s0, a, s0 );
     259    58790012 :     s1 = wwu_add_if( active_lane, s1, b, s1 );
     260    58790012 :     s2 = wwu_add_if( active_lane, s2, c, s2 );
     261    58790012 :     s3 = wwu_add_if( active_lane, s3, d, s3 );
     262    58790012 :     s4 = wwu_add_if( active_lane, s4, e, s4 );
     263    58790012 :     s5 = wwu_add_if( active_lane, s5, f, s5 );
     264    58790012 :     s6 = wwu_add_if( active_lane, s6, g, s6 );
     265    58790012 :     s7 = wwu_add_if( active_lane, s7, h, s7 );
     266             : 
     267             :     /* Advance to the next message segment blocks.  In pseudo code,
     268             :        the below is:
     269             : 
     270             :          W += 64; if( block_rem ) block_rem--;
     271             : 
     272             :        Since we do not load anything at W(lane) above unless
     273             :        block_rem(lane) is non-zero, we can omit vector conditional
     274             :        operations for W(lane) below. */
     275             : 
     276    58790012 :     W_lo = wwv_add( W_lo, wwv_64 );
     277    58790012 :     W_hi = wwv_add( W_hi, wwv_64 );
     278             : 
     279    58790012 :     block_rem_lo = wwv_sub_if( active_lane_lo, block_rem_lo, one, block_rem_lo );
     280    58790012 :     block_rem_hi = wwv_sub_if( active_lane_hi, block_rem_hi, one, block_rem_hi );
     281    58790012 :   }
     282             : 
     283             :   /* Store the results.  FIXME: Probably could optimize the transpose
     284             :      further by taking into account needed stores (and then maybe go
     285             :      direct into memory ... would need a family of such transposed
     286             :      stores). */
     287             : 
     288     6355582 :   wwu_transpose_2x8x8( wwu_bswap(s0), wwu_bswap(s1), wwu_bswap(s2), wwu_bswap(s3),
     289     6355582 :                        wwu_bswap(s4), wwu_bswap(s5), wwu_bswap(s6), wwu_bswap(s7), s0,s1,s2,s3,s4,s5,s6,s7 );
     290             : 
     291     6355582 :   uint * const * batch_hash = (uint * const *)_batch_hash;
     292     6355582 :   switch( batch_cnt ) { /* application dependent prob */
     293     5542520 :   case 16UL: wu_stu( batch_hash[15], _mm512_extracti32x8_epi32( s7, 1 ) ); __attribute__((fallthrough));
     294     5544500 :   case 15UL: wu_stu( batch_hash[14], _mm512_extracti32x8_epi32( s6, 1 ) ); __attribute__((fallthrough));
     295     5546529 :   case 14UL: wu_stu( batch_hash[13], _mm512_extracti32x8_epi32( s5, 1 ) ); __attribute__((fallthrough));
     296     5548547 :   case 13UL: wu_stu( batch_hash[12], _mm512_extracti32x8_epi32( s4, 1 ) ); __attribute__((fallthrough));
     297     5550588 :   case 12UL: wu_stu( batch_hash[11], _mm512_extracti32x8_epi32( s3, 1 ) ); __attribute__((fallthrough));
     298     5552546 :   case 11UL: wu_stu( batch_hash[10], _mm512_extracti32x8_epi32( s2, 1 ) ); __attribute__((fallthrough));
     299     5554510 :   case 10UL: wu_stu( batch_hash[ 9], _mm512_extracti32x8_epi32( s1, 1 ) ); __attribute__((fallthrough));
     300     5556529 :   case  9UL: wu_stu( batch_hash[ 8], _mm512_extracti32x8_epi32( s0, 1 ) ); __attribute__((fallthrough));
     301     6324443 :   case  8UL: wu_stu( batch_hash[ 7], _mm512_extracti32x8_epi32( s7, 0 ) ); __attribute__((fallthrough));
     302     6326488 :   case  7UL: wu_stu( batch_hash[ 6], _mm512_extracti32x8_epi32( s6, 0 ) ); __attribute__((fallthrough));
     303     6328525 :   case  6UL: wu_stu( batch_hash[ 5], _mm512_extracti32x8_epi32( s5, 0 ) ); __attribute__((fallthrough));
     304     6355582 :   case  5UL: wu_stu( batch_hash[ 4], _mm512_extracti32x8_epi32( s4, 0 ) ); __attribute__((fallthrough));
     305     6355582 :   case  4UL: wu_stu( batch_hash[ 3], _mm512_extracti32x8_epi32( s3, 0 ) ); __attribute__((fallthrough));
     306     6355582 :   case  3UL: wu_stu( batch_hash[ 2], _mm512_extracti32x8_epi32( s2, 0 ) ); __attribute__((fallthrough));
     307     6355582 :   case  2UL: wu_stu( batch_hash[ 1], _mm512_extracti32x8_epi32( s1, 0 ) ); __attribute__((fallthrough));
     308     6355582 :   case  1UL: wu_stu( batch_hash[ 0], _mm512_extracti32x8_epi32( s0, 0 ) ); __attribute__((fallthrough));
     309     6355582 :   default: break;
     310     6355582 :   }
     311     6355582 : }

Generated by: LCOV version 1.14