<commit_before>#License: Public Domain
#Author: elf
#EMail: <EMAIL>

.text
.globl U64_Parse, UI_Add, UI_Sub

U64_Parse:
movq %rdx, %r8
movq %rcx, %r9
xorq %rax, %rax
xorq %rcx, %rcx
xorb %dl, %dl
movq $10, %rbx
0:
movb (%rdi), %cl
subb $0x30, %cl
js 1f
cmpb $9, %cl
jg 1f
mulq %rbx
setcb %dl
jc 2f
addq %rcx, %rax
setcb %dl
jc 2f
incq %rdi
decq %rsi
jnz 0b
1:
movq %rax, (%r8)
2:
movb %dl, (%r9)
movq %rdi, %rax
ret

UI_Add:
movq (%rsi), %rax
addq %rax, (%rdi)
0:
leaq 8(%rdi), %rdi
leaq 8(%rsi), %rsi
movq (%rsi), %rax
adcq %rax, (%rdi)
decq %rdx
jnz 0b
setcb %al
ret

UI_Sub:
movq (%rsi), %rax
subq %rax, (%rdi)
0:
leaq 8(%rdi), %rdi
leaq 8(%rsi), %rsi
movq (%rsi), %rax
sbbq %rax, (%rdi)
decq %rdx
jnz 0b
setcb %al
ret

<commit_msg>Add asm function of x86_64 'UI_Mul64'<commit_after>#License: Public Domain
#Author: elf
#EMail: <EMAIL>

.text
.globl U64_Parse, UI_Add, UI_Sub, UI_Mul64

U64_Parse:
movq %rdx, %r8
movq %rcx, %r9
xorq %rax, %rax
xorq %rcx, %rcx
xorb %dl, %dl
movq $10, %rbx
0:
movb (%rdi), %cl
subb $0x30, %cl
js 1f
cmpb $9, %cl
jg 1f
mulq %rbx
setcb %dl
jc 2f
addq %rcx, %rax
setcb %dl
jc 2f
incq %rdi
decq %rsi
jnz 0b
1:
movq %rax, (%r8)
2:
movb %dl, (%r9)
movq %rdi, %rax
ret

UI_Add:
movq (%rsi), %rax
addq %rax, (%rdi)
0:
leaq 8(%rdi), %rdi
leaq 8(%rsi), %rsi
movq (%rsi), %rax
adcq %rax, (%rdi)
decq %rdx
jnz 0b
setcb %al
ret

UI_Sub:
movq (%rsi), %rax
subq %rax, (%rdi)
0:
leaq 8(%rdi), %rdi
leaq 8(%rsi), %rsi
movq (%rsi), %rax
sbbq %rax, (%rdi)
decq %rdx
jnz 0b
setcb %al
ret

UI_Mul64:
movq %rdx, %rcx
movq (%rdi), %rax
mulq %rcx
movq %rdx, %rbx
movq %rax, (%rdi)
0:
leaq 8(%rdi), %rdi
movq (%rdi), %rax
mulq %rcx
addq %rbx, %rax
jnc 1f
incq %rdx
1:
movq %rdx, %rbx
movq %rax, (%rdi)
decq %rsi
jnz 0b
movq %rbx, %rax
ret


{'fraction_non_alphanumeric': 0.18514285714285714, 'fraction_numerical': 0.04285714285714286, 'mean_word_length': 4.338414634146342, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6838615', 'n_tokens_mistral': 1089, 'n_tokens_neox': 993, 'n_words': 312}