<commit_before># $Id$

.sub bench :main
.include "pmctypes.pasm"
.include "mmd.pasm"
   .local pmc my_mul
   my_mul = global "my_mul"
   add_multi .MMD_MULTIPLY, .Integer, .Integer, my_mul
   .local int i
   .local pmc r
   .local pmc a
   .local pmc b
   a = new 'Integer'
   b = new 'Integer'
   r = new 'Integer'
   a = 7
   b = 6
   i = 1
loop:
   r = a * b
   inc i
   if i <= 500000 goto loop
   print r
   print "\n"
   end
.end


.sub my_mul
   .param pmc left
   .param pmc right
   .param pmc dest
   $I0 = left
   $I1 = right
   $I2 = $I0 * $I1
   dest = $I2
   .return (dest)
.end

# Local Variables:
#   mode: pir
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir:
<commit_msg>[examples] Replaced deprecated add_multi op with :multi declaration on multisub.<commit_after># $Id$

.sub bench :main
.include "pmctypes.pasm"
.include "mmd.pasm"
   .local int i
   .local pmc r
   .local pmc a
   .local pmc b
   a = new 'Integer'
   b = new 'Integer'
   r = new 'Integer'
   a = 7
   b = 6
   i = 1
loop:
   r = a * b
   inc i
   if i <= 500000 goto loop
   print r
   print "\n"
   end
.end


.sub my_mul :multi(Integer, Integer, Integer)
   .param pmc left
   .param pmc right
   .param pmc dest
   $I0 = left
   $I1 = right
   $I2 = $I0 * $I1
   dest = $I2
   .return (dest)
.end

# Local Variables:
#   mode: pir
#   fill-column: 100
# End:
# vim: expandtab shiftwidth=4 ft=pir:

{'fraction_non_alphanumeric': 0.11869225302061123, 'fraction_numerical': 0.02700781805259417, 'mean_word_length': 2.149888143176734, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6590859', 'n_tokens_mistral': 616, 'n_tokens_neox': 584, 'n_words': 197}