From: Philipp Klaus Krause <pkk@sp...> - 2008-12-27 19:23:40
-----BEGIN PGP SIGNED MESSAGE-----
Are you using one of the above functions in the Z80 port?
If you're using strlen(), could you use strnlen() instead?
If you're using strchr(), could you use memchr() instead?
The Z80 has some instructions that can do relatively complex stuff.
Using them usually yields large performance gains and sometimes a code
I noticed five C functions where such instructions could be used:
I have just made memcpy() a builtin function using the ldir instruction.
I've rewritten memmove() in assembler using ldir and lddr instructions.
The other three could be implemented using the cpir instruction,
if users are interested in it and I find the time.
Unlike memcpy() and memmove() I rarely not use these functions in my own
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Get latest updates about Open Source Projects, Conferences and News.