<commit_before>#include <usual/endian.h>

#include "test_common.h"

#include <stdarg.h>
#include <string.h>

/*
 * bswap*()
 */

static void test_bswap(void *p)
{
	int_check(bswap16(0xff01), 0x01ff);
	int_check(bswap32(0x01020304), 0x04030201);
	int_check(bswap64(0x0102030405060708ULL), 0x0807060504030201ULL);
end:;<commit_msg>test_endian: fix uint64 check<commit_after>#include <usual/endian.h>

#include "test_common.h"

#include <stdarg.h>
#include <string.h>

/*
 * bswap*()
 */

static void test_bswap(void *p)
{
	int_check(bswap16(0xff01), 0x01ff);
	int_check(bswap32(0x01020304), 0x04030201);
	ull_check(bswap64(0x0102030405060708ULL), 0x0807060504030201ULL);
end:;
{'fraction_non_alphanumeric': 0.15578635014836795, 'fraction_numerical': 0.19287833827893175, 'mean_word_length': 7.2317073170731705, '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': '1956526', 'n_tokens_mistral': 384, 'n_tokens_neox': 315, 'n_words': 42}