I've been trying to work out what _ftol2 and _ftol2_sse are used for
I'm starting with my Kernel, and have created some basic C library functions, including a fully functional printf. I have tested the printf in a normal Visual Studio project, and it works fine.
However, when I setup a project to start a Kernel, and remove built in CRT, etc, it doesn't compile, due to missing external symbols.
I have gotten most of these sorted out. The only ones remaining are _ftol2, _ftol2_sse and _fltused.
From my research, it looks like _ftol2_sse is the same as _ftol2, so I can ignore that for now. I have also found out that I should set _fltused like this:
Code: Select all
int _fltused = 1
All I can find on _ftol2 is that it is used to convert a double to a long integer. Looks like the functions are declared like this:
Code: Select all
//long _ftol( double f );
//long _ftol2( double f) { return _ftol(f); }
Can someone help me with this. For starters, I need to know accurately what these functions do. Maybe even some sample code if possible.
Thankyou all for your help