speedup kfonts

completely rewriting Aelia #2

git-svn-id: svn://kolibrios.org@7286 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2018-05-22 12:04:44 +00:00
parent 969b1d6c5f
commit aa5f8268a3
11 changed files with 225 additions and 151 deletions

View File

@@ -180,8 +180,35 @@ inline signed int strcmp(dword text1, text2)
return 0;
}
:bool strequ(dword text1, text2) {
if (!strcmp(text1,text2)) return true; else return false;
/*
TODO: rewrite streq() using pure assembliy
inline fastcall void strcpy( EDI, ESI)
{
$cld
L2:
$lodsb
$stosb
$test al,al
$jnz L2
}
*/
inline fastcall streq(ESI, EDI)
{
loop()
{
if(DSBYTE[ESI]==DSBYTE[EDI])
{
if(DSBYTE[ESI]==0) return true;
}
else {
return false;
}
ESI++;
EDI++;
}
return true;
}
/*