<commit_before>#include <final_platform_layer.h>

// ############################################################################
//
// No C-Runtime Support
//
// This block contains stuff to make FPL compilable without the CRT.
//
// ############################################################################
#if defined(FPL_NO_CRT)

// @NOTE(final): At the moment only MSVC requires this i assume
#if defined(FPL_COMPILER_MSVC)

#if defined(__cplusplus)
extern "C" {
#endif

	__declspec(selectany) int _fltused = 0;

	// CRT-Math routines, based on:
	// https://gist.github.com/mmozeiko/6a365d6c483fc721b63a#file-win32_crt_float-cpp
	// libSDL
#	ifdef _M_IX86

	__declspec(naked) void _ftol2()
    {
        __asm
        {
            fistp qword ptr [esp-8]
            mov   edx,[esp-4]
            mov   eax,[esp-8]
            ret
        }
    }

    __declspec(naked) void _ftol2_sse()
    {
        __asm
        {
            fistp dword ptr [esp-4]
            mov   eax,[esp-4]
            ret
        }
    }

	__declspec(naked) void _ltod3()
    {
        __asm
        {
        }
    }

	__declspec(naked) void _ultod3() {
		__asm
		{
		}
	}

	// 64-bit math for 32-bit
	void __declspec(naked) _allmul() {
		__asm {
			mov         eax, dword ptr[esp + 8]
			mov         ecx, dword ptr[esp + 10h]
			or ecx, eax
			mov         ecx, dword ptr[esp + 0Ch]
			jne         hard
			mov         eax, dword ptr[esp + 4]
			mul         ecx
			ret         10h
			hard :
			push        ebx
				mul         ecx
				mov         ebx, eax
				mov         eax, dword ptr[esp + 8]
				mul         dword ptr[esp + 14h]
				add         ebx, eax
				mov         eax, dword ptr[esp + 8]
				mul         ecx
				add         edx, ebx
				pop         ebx
				ret         10h
		}
	}<commit_msg>Fixed missing stub for  _ftoui3 in tinycrt.h<commit_after>#include <final_platform_layer.h>

// ############################################################################
//
// No C-Runtime Support
//
// This block contains stuff to make FPL compilable without the CRT.
//
// ############################################################################
#if defined(FPL_NO_CRT)

// @NOTE(final): At the moment only MSVC requires this i assume
#if defined(FPL_COMPILER_MSVC)

#if defined(__cplusplus)
extern "C" {
#endif

	__declspec(selectany) int _fltused = 0;

	// CRT-Math routines, based on:
	// https://gist.github.com/mmozeiko/6a365d6c483fc721b63a#file-win32_crt_float-cpp
	// libSDL
#	ifdef _M_IX86

	__declspec(naked) void _ftol2()
    {
        __asm
        {
            fistp qword ptr [esp-8]
            mov   edx,[esp-4]
            mov   eax,[esp-8]
            ret
        }
    }

    __declspec(naked) void _ftol2_sse()
    {
        __asm
        {
            fistp dword ptr [esp-4]
            mov   eax,[esp-4]
            ret
        }
    }

	__declspec(naked) void _ltod3()
    {
        __asm
        {
        }
    }

	__declspec(naked) void _ultod3() {
		__asm
		{
		}
	}

	__declspec(naked) void _ftoui3() {
		__asm
		{
		}
	}

	// 64-bit math for 32-bit
	void __declspec(naked) _allmul() {
		__asm {
			mov         eax, dword ptr[esp + 8]
			mov         ecx, dword ptr[esp + 10h]
			or ecx, eax
			mov         ecx, dword ptr[esp + 0Ch]
			jne         hard
			mov         eax, dword ptr[esp + 4]
			mul         ecx
			ret         10h
			hard :
			push        ebx
				mul         ecx
				mov         ebx, eax
				mov         eax, dword ptr[esp + 8]
				mul         dword ptr[esp + 14h]
				add         ebx, eax
				mov         eax, dword ptr[esp + 8]
				mul         ecx
				add         edx, ebx
				pop         ebx
				ret         10h
		}
	}
{'fraction_non_alphanumeric': 0.17290357825730673, 'fraction_numerical': 0.024583447145588636, 'mean_word_length': 1.6769005847953216, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6854807', 'n_tokens_mistral': 1508, 'n_tokens_neox': 1294, 'n_words': 310}