mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 11:24:14 +00:00
[CRT]
- Implement portable fabsf.c - Move some ARM stubs to a better location - Add stubs for __dtoi64, __i64tos, __u64tos, _clearfp svn path=/trunk/; revision=67537
This commit is contained in:
parent
f982ad2644
commit
344e771eb2
8 changed files with 114 additions and 0 deletions
24
reactos/lib/sdk/crt/float/arm/_clearfp.s
Normal file
24
reactos/lib/sdk/crt/float/arm/_clearfp.s
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* COPYRIGHT: BSD - See COPYING.ARM in the top level directory
|
||||||
|
* PROJECT: ReactOS CRT library
|
||||||
|
* PURPOSE: Implementation of _clearfp
|
||||||
|
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <kxarm.h>
|
||||||
|
|
||||||
|
/* CODE **********************************************************************/
|
||||||
|
|
||||||
|
TEXTAREA
|
||||||
|
|
||||||
|
LEAF_ENTRY _clearfp
|
||||||
|
|
||||||
|
__assertfail
|
||||||
|
bx lr
|
||||||
|
|
||||||
|
LEAF_END _clearfp
|
||||||
|
|
||||||
|
END
|
||||||
|
/* EOF */
|
24
reactos/lib/sdk/crt/math/arm/__dtoi64.s
Normal file
24
reactos/lib/sdk/crt/math/arm/__dtoi64.s
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* COPYRIGHT: BSD - See COPYING.ARM in the top level directory
|
||||||
|
* PROJECT: ReactOS CRT library
|
||||||
|
* PURPOSE: Implementation of __dtoi64
|
||||||
|
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <kxarm.h>
|
||||||
|
|
||||||
|
/* CODE **********************************************************************/
|
||||||
|
|
||||||
|
TEXTAREA
|
||||||
|
|
||||||
|
LEAF_ENTRY __dtoi64
|
||||||
|
|
||||||
|
__assertfail
|
||||||
|
bx lr
|
||||||
|
|
||||||
|
LEAF_END __dtoi64
|
||||||
|
|
||||||
|
END
|
||||||
|
/* EOF */
|
24
reactos/lib/sdk/crt/math/arm/__i64tos.s
Normal file
24
reactos/lib/sdk/crt/math/arm/__i64tos.s
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* COPYRIGHT: BSD - See COPYING.ARM in the top level directory
|
||||||
|
* PROJECT: ReactOS CRT library
|
||||||
|
* PURPOSE: Implementation of __i64tos
|
||||||
|
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <kxarm.h>
|
||||||
|
|
||||||
|
/* CODE **********************************************************************/
|
||||||
|
|
||||||
|
TEXTAREA
|
||||||
|
|
||||||
|
LEAF_ENTRY __i64tos
|
||||||
|
|
||||||
|
__assertfail
|
||||||
|
bx lr
|
||||||
|
|
||||||
|
LEAF_END __i64tos
|
||||||
|
|
||||||
|
END
|
||||||
|
/* EOF */
|
24
reactos/lib/sdk/crt/math/arm/__u64tos.s
Normal file
24
reactos/lib/sdk/crt/math/arm/__u64tos.s
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* COPYRIGHT: BSD - See COPYING.ARM in the top level directory
|
||||||
|
* PROJECT: ReactOS CRT library
|
||||||
|
* PURPOSE: Implementation of __u64tos
|
||||||
|
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* INCLUDES ******************************************************************/
|
||||||
|
|
||||||
|
#include <kxarm.h>
|
||||||
|
|
||||||
|
/* CODE **********************************************************************/
|
||||||
|
|
||||||
|
TEXTAREA
|
||||||
|
|
||||||
|
LEAF_ENTRY __u64tos
|
||||||
|
|
||||||
|
__assertfail
|
||||||
|
bx lr
|
||||||
|
|
||||||
|
LEAF_END __u64tos
|
||||||
|
|
||||||
|
END
|
||||||
|
/* EOF */
|
18
reactos/lib/sdk/crt/math/fabsf.c
Normal file
18
reactos/lib/sdk/crt/math/fabsf.c
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
/*
|
||||||
|
* COPYRIGHT: BSD - See COPYING.ARM in the top level directory
|
||||||
|
* PROJECT: ReactOS CRT library
|
||||||
|
* PURPOSE: Implementation of fabsf
|
||||||
|
* PROGRAMMER: Timo Kreuzer
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
_Check_return_
|
||||||
|
float
|
||||||
|
__cdecl
|
||||||
|
fabsf(
|
||||||
|
_In_ float x)
|
||||||
|
{
|
||||||
|
return (float)fabs((double)x);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue