mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 06:42:52 +00:00
a old patch I have for freeldr (did this change one year ago)
small speed in-cress, remove freeldr ros glue C version of memcpy, memcmp, isalnum, labs and replace it from reactos string.a we got asm version of most of them, so that is reason to the speed in-cress of freeldr, freeldr are still slow in reactos thanks to our win32k, for we do not cahced the glyth yet. svn path=/trunk/; revision=25216
This commit is contained in:
parent
22dc51bae5
commit
0ed434ca11
|
@ -10,6 +10,7 @@
|
|||
<define name="TT_CONFIG_OPTION_BYTECODE_INTERPRETER" />
|
||||
</if>
|
||||
<library>ntoskrnl</library>
|
||||
<library>ntdll</library>
|
||||
<library>hal</library>
|
||||
<directory name="i386">
|
||||
<file>setjmplongjmp.s</file>
|
||||
|
|
43
reactos/dll/3rdparty/freetype/rosglue.c
vendored
43
reactos/dll/3rdparty/freetype/rosglue.c
vendored
|
@ -26,50 +26,7 @@
|
|||
* First some generic routines
|
||||
*/
|
||||
|
||||
void *
|
||||
memcpy(void *Dest, const void *Source, size_t Size)
|
||||
{
|
||||
RtlMoveMemory(Dest, Source, Size);
|
||||
|
||||
return Dest;
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
memcmp(const void *p1, const void *p2, size_t Size)
|
||||
{
|
||||
unsigned int i;
|
||||
const char* s1;
|
||||
const char* s2;
|
||||
|
||||
s1 = (const char *) p1;
|
||||
s2 = (const char *) p2;
|
||||
for (i = 0; i < Size; i++)
|
||||
{
|
||||
if ((*s1) != (*s2))
|
||||
{
|
||||
return((*s1) - (*s2));
|
||||
}
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
return(0);
|
||||
}
|
||||
|
||||
/* Hopefully we're only passed ASCII characters.... */
|
||||
int
|
||||
isalnum(int c)
|
||||
{
|
||||
assert(0x20 <= c && c <= 0x7f);
|
||||
|
||||
return (('0' <= c && c <= '9') || ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z'));
|
||||
}
|
||||
|
||||
long
|
||||
labs(long j)
|
||||
{
|
||||
return (j < 0 ? -j : j);
|
||||
}
|
||||
|
||||
/*
|
||||
* Memory allocation
|
||||
|
|
Loading…
Reference in a new issue