lib/ruby/truffle/pr-zlib/lib/pr/rbzlib.rb
# Save the match info and tally the frequency counts. Return true if
#  the current block must be flushed.
Save the match info and tally the frequency counts. Return true if
the current block must be flushed.
Save the match info and tally the frequency counts . Return true if the current block must be flushed .
def _tr_tally(s,dist,lc)
    s.d_buf[s.last_lit] = dist
    s.l_buf[s.last_lit] = lc
    s.last_lit+=1
    if dist == 0
      s.dyn_ltree[lc].fc+=1
    else
      s.matches+=1
      dist-=1
      code =  (dist < 256) ? @@_dist_code[dist] : @@_dist_code[256+(dist >> 7)]
      s.dyn_ltree[@@_length_code[lc]+LITERALS+1].fc += 1
      s.dyn_dtree[code].fc += 1
    end
    (s.last_lit == s.lit_bufsize-1)
  end
def _tr_tally ( s , dist , lc ) s . d_buf [ s . last_lit ] = dist s . l_buf [ s . last_lit ] = lc s . last_lit += 1 if dist == 0 s . dyn_ltree [ lc ] . fc += 1 else s . matches += 1 dist -= 1 code = ( dist < 256 ) ? @@_dist_code [ dist ] : @@_dist_code [ 256 + ( dist >> 7 ) ] s . dyn_ltree [ @@_length_code [ lc ] + LITERALS + 1 ] . fc += 1 s . dyn_dtree [ code ] . fc += 1 end ( s . last_lit == s . lit_bufsize - 1 ) end
Save the match info and tally the frequency counts.
Save the match info and tally the frequency counts .
s
<not_specific>
dist
<not_specific>
lc
<not_specific>