From: SourceForge.net <no...@so...> - 2012-06-27 09:00:24
|
Feature Requests item #2471534, was opened at 2008-12-27 11:03 Message generated for change (Comment added) made by spth You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350599&aid=2471534&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: z80 port Group: None Status: Open Priority: 4 Private: No Submitted By: Philipp Klaus Krause (spth) Assigned to: Nobody/Anonymous (nobody) Summary: Use cpir for (builtin) strnlen() and memchr() Initial Comment: The Z80 has the cpir instruction, which essentially implements memchr(). The Z80 port should use cpir to get a small, fast memchr() and strnlen(), maybe even as builtin functions. The code generated for the builtin function would probably be even less than the call overhead in many cases. Philipp ---------------------------------------------------------------------- >Comment By: Philipp Klaus Krause (spth) Date: 2012-06-27 02:00 Message: The strnlen() part is rejected, since it is not a standard C function (it is from POSIX.1-2008). Philipp ---------------------------------------------------------------------- Comment By: Philipp Klaus Krause (spth) Date: 2009-01-04 10:31 Message: Implemented for strlen() in revision #5330. Still not implemented for strnlen() and memchr(). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350599&aid=2471534&group_id=599 |