<commit_before>/**
 * @file
 * @brief Macros for aligning values up to the power of two boundaries.
 *
 * @date 04.06.10
 * @author <NAME>
 */

#ifndef UTIL_BINALIGN_H_
#define UTIL_BINALIGN_H_

#define __binalign_mask(x, mask)       (((x) + (mask)) & ~(mask))

#define __binalign(x, power) \
		__binalign_bound(x, 0x1 << (power))

#ifndef __ASSEMBLER__

# define __binalign_bound(x, bound) \
		__binalign_mask(x, (typeof(x)) (bound) - 1)

#else /* __ASSEMBLER__ */

# define __binalign_bound(x, bound) \
		__binalign_mask(x, (bound) - 1)

#endif /* __ASSEMBLER__ */

#define __binalign_check_mask(x, mask)  (((x) & (mask)) == 0)
<commit_msg>utils: Fix binalign with long shift (use typeof)<commit_after>/**
 * @file
 * @brief Macros for aligning values up to the power of two boundaries.
 *
 * @date 04.06.10
 * @author <NAME>
 */

#ifndef UTIL_BINALIGN_H_
#define UTIL_BINALIGN_H_

#define __binalign_mask(x, mask)       (((x) + (mask)) & ~(mask))

#define __binalign(x, power) \
		__binalign_bound(x, (typeof(x)) 0x1 << (power))

#ifndef __ASSEMBLER__

# define __binalign_bound(x, bound) \
		__binalign_mask(x, (typeof(x)) (bound) - 1)

#else /* __ASSEMBLER__ */

# define __binalign_bound(x, bound) \
		__binalign_mask(x, (bound) - 1)

#endif /* __ASSEMBLER__ */

#define __binalign_check_mask(x, mask)  (((x) & (mask)) == 0)

{'fraction_non_alphanumeric': 0.16303531179564237, 'fraction_numerical': 0.01652892561983471, 'mean_word_length': 4.223529411764706, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4122779', 'n_tokens_mistral': 586, 'n_tokens_neox': 556, 'n_words': 126}