<commit_before>/*
 * sample.h
 *
 * Part of libtt (the integer amplifier library)
 *
 * Copyright (C) 2012 <NAME> <<EMAIL>> 
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef TT_SAMPLE_H_
#define TT_SAMPLE_H_

#include <stdint.h>
#include <math.h>

//
// The fixed point limits are useful even when operating in floating point
// mode because that way the runtime asserts are still meaningful.
//

#define TTQ 20			//!< Fractional bits for normal precision (Q19)
#define TTSPL_MAX ((1 << (32-TTQ)) - 1)
#define TTSPL_MIN (-TTSPL_MAX)

#define TLQ (2*TTQ)		//!< Fractional bits for "long" precision (Q38)
#define TLSPL_MAX ((1ll << (64-TLQ)) - 1)
#define TLSPL_MIN (-TLSPL_MAX)

#define TSQ 15			//!< Fractional bits for "short" precision (Q15)

<commit_msg>libtt/sample: Fix the broken MIN/MAX macros<commit_after>/*
 * sample.h
 *
 * Part of libtt (the integer amplifier library)
 *
 * Copyright (C) 2012 <NAME> <<EMAIL>> 
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef TT_SAMPLE_H_
#define TT_SAMPLE_H_

#include <stdint.h>
#include <math.h>

//
// The fixed point limits are useful even when operating in floating point
// mode because that way the runtime asserts are still meaningful.
//

#define TTQ 20			//!< Fractional bits for normal precision (Q19)
#define TTSPL_MAX ((1 << (31-TTQ)) - 1)
#define TTSPL_MIN (-TTSPL_MAX)

#define TLQ (2*TTQ)		//!< Fractional bits for "long" precision (Q38)
#define TLSPL_MAX ((1ll << (63-TLQ)) - 1)
#define TLSPL_MIN (-TLSPL_MAX)

#define TSQ 15			//!< Fractional bits for "short" precision (Q15)


{'fraction_non_alphanumeric': 0.11464646464646465, 'fraction_numerical': 0.024242424242424242, 'mean_word_length': 3.808252427184466, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 13, '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': '2954653', 'n_tokens_mistral': 721, 'n_tokens_neox': 652, 'n_words': 261}