<commit_before>#ifndef _CLMUL_H_
#define _CLMUL_H_


#ifdef __PCLMUL__

#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <x86intrin.h>


#define IACA
#ifdef IACA
#include </opt/intel/iaca/include/iacaMarks.h>
#endif


void printme(__m128i v1) {
    printf(" %i %i %i %i times ", _mm_extract_epi32(v1,0), _mm_extract_epi32(v1,1), _mm_extract_epi32(v1,2), _mm_extract_epi32(v1,3));
}

void printme64(__m128i v1) {
    printf(" %llu %llu times ", _mm_extract_epi64(v1,0), _mm_extract_epi64(v1,1));
}
/////////////////////////////////////////////////////////////////
// working from
// "Modular Reduction in GF(2n) without Pre-computational Phase"
// by <NAME>, <NAME>, <NAME>, and <NAME> (2008)
// algo. 4
//
// A is input, M is irred. (n=32)
//
//(((A div x^n) * M ) div x^n) * M) mod x^n
//+(A mod x^n)
//////////////////////////////////////////////////
uint32_t barrettWithoutPrecomputation32( __m128i A) {
    ///http://www.jjj.de/mathdata/minweight-primpoly.txt<commit_msg>Commenting out<commit_after>#ifndef _CLMUL_H_
#define _CLMUL_H_


#ifdef __PCLMUL__

#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <x86intrin.h>


//#define IACA
#ifdef IACA
#include </opt/intel/iaca/include/iacaMarks.h>
#endif


void printme(__m128i v1) {
    printf(" %i %i %i %i times ", _mm_extract_epi32(v1,0), _mm_extract_epi32(v1,1), _mm_extract_epi32(v1,2), _mm_extract_epi32(v1,3));
}

void printme64(__m128i v1) {
    printf(" %llu %llu times ", _mm_extract_epi64(v1,0), _mm_extract_epi64(v1,1));
}
/////////////////////////////////////////////////////////////////
// working from
// "Modular Reduction in GF(2n) without Pre-computational Phase"
// by <NAME>, <NAME>, <NAME>, and <NAME> (2008)
// algo. 4
//
// A is input, M is irred. (n=32)
//
//(((A div x^n) * M ) div x^n) * M) mod x^n
//+(A mod x^n)
//////////////////////////////////////////////////
uint32_t barrettWithoutPrecomputation32( __m128i A) {
    ///http://www.jjj.de/mathdata/minweight-primpoly.txt
{'fraction_non_alphanumeric': 0.2719518314099348, 'fraction_numerical': 0.05117912694430507, 'mean_word_length': 2.5354609929078014, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6352887', 'n_tokens_mistral': 844, 'n_tokens_neox': 781, 'n_words': 170}