<commit_before>/* Copyright 2010 (C) <NAME>, <NAME>, <NAME> */

#define HAVE_ARCH_nn_add_mc

word_t nn_add_mc(nn_t a, nn_src_t b, nn_src_t c, len_t m, word_t ci)
{
   __asm__ (

   ".intel_syntax noprefix; \
    mov rax, r8; \
    jrcxz 2f; \
    lea rdi, [rdi+rcx*8]; \
    lea rsi, [rsi+rcx*8]; \
    lea rdx, [rdx+rcx*8]; \
    neg rcx; \
    sar eax, 1; \
1:; \
    mov r10, [rsi+rcx*8]; \
    adc r10, [rdx+rcx*8]; \
    mov [rdi+rcx*8], r10; \
    inc rcx; \
    jnz 1b; \
    setc al; \
2:; "

   : "=a" ((word_t)(ci))
   : "c" ((len_t)(m)), "d" ((nn_src_t)(c)), "S" ((nn_src_t)(b)), "D" ((nn_src_t *)(a))
   );

   return ci;
}

#define HAVE_ARCH_nn_sub_mc

word_t nn_sub_mc(nn_t a, nn_src_t b, nn_src_t c, len_t m, word_t ci)
{
   __asm__ (

   ".intel_syntax noprefix; \
    mov rax, r8; \
    jrcxz 2f; \
    lea rdi, [rdi+rcx*8]; \
    lea rsi, [rsi+rcx*8]; \
    lea rdx, [rdx+rcx*8]; \
    neg rcx; \
    sar eax, 1; \
1:; \
    mov r10, [rsi+rcx*8]; \
    sbb r10, [rdx+rcx*8]; \
    mov [rdi+rcx*8], r10; \
    inc rcx; \
    jnz 1b; \
    setc al; \
2:; "

   : "=a" ((word_t)(ci))
   : "c" ((len_t)(m)), "d" ((nn_src_t)(c)), "S" ((nn_src_t)(b)), "D" ((nn_src_t *)(a))
   );

   return ci;
}
<commit_msg>Revert "Added nn_sub_mc assembly."<commit_after>/* Copyright 2010 (C) <NAME>, <NAME>, <NAME> */

#define HAVE_ARCH_nn_add_mc

word_t nn_add_mc(nn_t a, nn_src_t b, nn_src_t c, len_t m, word_t ci)
{
   __asm__ (

   ".intel_syntax noprefix; \
    mov rax, r8; \
    jrcxz 2f; \
    lea rdi, [rdi+rcx*8]; \
    lea rsi, [rsi+rcx*8]; \
    lea rdx, [rdx+rcx*8]; \
    neg rcx; \
    sar eax, 1; \
1:; \
    mov r10, [rsi+rcx*8]; \
    adc r10, [rdx+rcx*8]; \
    mov [rdi+rcx*8], r10; \
    inc rcx; \
    jnz 1b; \
    setc al; \
2:; "

   : "=a" ((word_t)(ci))
   : "c" ((len_t)(m)), "d" ((nn_src_t)(c)), "S" ((nn_src_t)(b)), "D" ((nn_src_t *)(a))
   );

   return ci;
}

{'fraction_non_alphanumeric': 0.22275132275132276, 'fraction_numerical': 0.0328042328042328, 'mean_word_length': 2.3828264758497317, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1743271', 'n_tokens_mistral': 1045, 'n_tokens_neox': 1003, 'n_words': 212}