<commit_before>#include "InterLock.h"

namespace ThreadLib
{
	long InterLockIncre(void *var, long value)
	{
#ifdef WIN32
		return ::InterlockedExchangeAdd((long*)var, value);
#else
		return (long)__sync_fetch_and_add((unsigned int*)var, value);
#endif
	}

	long InterLockDecre(void *var, long value)
	{
#ifdef WIN32
		return ::InterlockedExchangeAdd((long*)var, value);
#else
		return (long)__sync_fetch_and_add((unsigned int*)var, value);
#endif
	}
}<commit_msg>修复递减失误<commit_after>#include "InterLock.h"

namespace ThreadLib
{
	long InterLockIncre(void *var, long value)
	{
#ifdef WIN32
		return ::InterlockedExchangeAdd((long*)var, value);
#else
		return (long)__sync_fetch_and_add((unsigned int*)var, value);
#endif
	}

	long InterLockDecre(void *var, long value)
	{
		value = value * -1;
#ifdef WIN32
		return ::InterlockedExchangeAdd((long*)var, value);
#else
		return (long)__sync_fetch_and_add((unsigned int*)var, value);
#endif
	}
}
{'fraction_non_alphanumeric': 0.1381509032943677, 'fraction_numerical': 0.009564293304994687, 'mean_word_length': 6.536, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3351954', 'n_tokens_mistral': 360, 'n_tokens_neox': 343, 'n_words': 75}