<commit_before>#ifndef LEPCAPY_ARCH_DEPS_H
#define LEPCAPY_ARCH_DEPS_H

#if defined(__amd64__) || defined(__x86_64__) || defined(__arm__)

#include <stdint.h>
#define __LEPCAPY_ARCH_OPTS__

/*
 * Arch-deps atomic features
 */
#define LOCK_PREFIX "\n\tlock; "

typedef struct {
    uint64_t cnt;
}atomic64_t;

__attribute__((always_inline))  inline void atomic64_rmov(atomic64_t *atomic_val, atomic64_t *mov_val){
#if defined(__amd64__) || defined(__x86_64__)
    __asm__ __volatile__ ("movq %1, %0"
                          : "+m" (atomic_val->cnt)
                          : "m" (mov_val->cnt));
#elif defined(__arm__)
#else
#endif
}

__attribute__((always_inline))  inline void atomic64_imov(atomic64_t *atomic_val, uint64_t mov_val){
#if defined(__amd64__) || defined(__x86_64__)
    __asm__ __volatile__ ("movq %1, %0"
                          : "+m" (atomic_val->cnt)
                          : "ir" (mov_val));
#elif defined(__arm__)
#else
#endif
}

__attribute__((always_inline))  inline void atomic64_iadd(atomic64_t *atomic_val, uint64_t add_val){
    #if defined(__amd64__) || defined(__x86_64__)
        __asm__ __volatile__ (LOCK_PREFIX "addq %1, %0"
                         : "+m" (atomic_val->cnt)
                         : "ir" (add_val));
    #elif defined(__arm__)
    #else
    #endif
}

__attribute__((always_inline))  inline void atomic64_isub(atomic64_t *atomic_val, uint64_t sub_val){
#if defined(__amd64__) || defined(__x86_64__)
    __asm__ __volatile__ (LOCK_PREFIX "subq %1, %0"
                          : "+m" (atomic_val->cnt)
                          : "ir" (sub_val));
#elif defined(__arm__)
#else
#endif
}

__attribute__((always_inline))  inline void atomic64_inc(atomic64_t *atomic_val){
#if defined(__amd64__) || defined(__x86_64__)
    __asm__ __volatile__ (LOCK_PREFIX "incq %0"
                          : "+m" (atomic_val->cnt));
#elif defined(__arm__)
#else<commit_msg>Fix Travis-CI AVX problem (2)<commit_after>#ifndef LEPCAPY_ARCH_DEPS_H
#define LEPCAPY_ARCH_DEPS_H

#if defined(__amd64__) || defined(__x86_64__) || defined(__arm__)

#include <stdint.h>
#define __LEPCAPY_ARCH_OPTS__

/*
 * Arch-deps atomic features
 */
#define LOCK_PREFIX "\n\tlock; "

typedef struct {
    uint64_t cnt;
}atomic64_t;

__attribute__((always_inline))  inline void atomic64_mov(atomic64_t *atomic_val, uint64_t mov_val){
#if defined(__amd64__) || defined(__x86_64__)
    __asm__ __volatile__ ("movq %1, %0"
                          : "+m" (atomic_val->cnt)
                          : "ir" (mov_val));
#elif defined(__arm__)
#else
#endif
}

__attribute__((always_inline))  inline void atomic64_add(atomic64_t *atomic_val, uint64_t add_val){
    #if defined(__amd64__) || defined(__x86_64__)
        __asm__ __volatile__ (LOCK_PREFIX "addq %1, %0"
                         : "+m" (atomic_val->cnt)
                         : "ir" (add_val));
    #elif defined(__arm__)
    #else
    #endif
}

__attribute__((always_inline))  inline void atomic64_sub(atomic64_t *atomic_val, uint64_t sub_val){
#if defined(__amd64__) || defined(__x86_64__)
    __asm__ __volatile__ (LOCK_PREFIX "subq %1, %0"
                          : "+m" (atomic_val->cnt)
                          : "ir" (sub_val));
#elif defined(__arm__)
#else
#endif
}

__attribute__((always_inline))  inline void atomic64_inc(atomic64_t *atomic_val){
#if defined(__amd64__) || defined(__x86_64__)
    __asm__ __volatile__ (LOCK_PREFIX "incq %0"
                          : "+m" (atomic_val->cnt));
#elif defined(__arm__)
#else
{'fraction_non_alphanumeric': 0.12720546385885032, 'fraction_numerical': 0.04012521343198634, 'mean_word_length': 3.1597633136094676, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '4411015', 'n_tokens_mistral': 1306, 'n_tokens_neox': 1226, 'n_words': 250}