From 0ed434ca118bcf9bdd8f235844e579067f5862f4 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 23 Dec 2006 21:02:31 +0000 Subject: [PATCH] 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 --- reactos/dll/3rdparty/freetype/freetype.rbuild | 1 + reactos/dll/3rdparty/freetype/rosglue.c | 43 ------------------- 2 files changed, 1 insertion(+), 43 deletions(-) diff --git a/reactos/dll/3rdparty/freetype/freetype.rbuild b/reactos/dll/3rdparty/freetype/freetype.rbuild index ec83eec9377..bc667ada709 100644 --- a/reactos/dll/3rdparty/freetype/freetype.rbuild +++ b/reactos/dll/3rdparty/freetype/freetype.rbuild @@ -10,6 +10,7 @@ ntoskrnl + ntdll hal setjmplongjmp.s diff --git a/reactos/dll/3rdparty/freetype/rosglue.c b/reactos/dll/3rdparty/freetype/rosglue.c index 28d9ea0a749..762bc56e334 100644 --- a/reactos/dll/3rdparty/freetype/rosglue.c +++ b/reactos/dll/3rdparty/freetype/rosglue.c @@ -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