Add a versin of memset() optimized for speed

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5242 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2012-10-21 00:41:44 +00:00
parent a2b8f82b1f
commit 8595dd344a
2 changed files with 17 additions and 8 deletions

View File

@ -8,7 +8,7 @@
<tr align="center" bgcolor="#e4e4e4">
<td>
<h1><big><font color="#3c34ec"><i>NuttShell (NSH)</i></font></big></h1>
<p>Last Updated: August 28, 2012</p>
<p>Last Updated: October 20, 2012</p>
</td>
</tr>
</table>

View File

@ -12,7 +12,7 @@
<h1><big><font color="#3c34ec">
<i>NuttX RTOS Porting Guide</i>
</font></big></h1>
<p>Last Updated: August 28, 2012</p>
<p>Last Updated: October 20, 2012</p>
</td>
</tr>
</table>
@ -4449,12 +4449,12 @@ build
If <code>CONFIG_ARCH_MEMCPY</code> is <b>not</b> selected, then you make also select Daniel
Vik's optimized implementation of <code>memcpy()</code>:
</p>
<ul><li>
<code>CONFIG_MEMCPY_VIK</code>:
Select this option to use the optimized <code>memcpy()</code> function by Daniel Vik.
See licensing information in the top-level <code>COPYING</code> file.
Default: <code>n</code>.
</li></ul>
<ul><li>
<code>CONFIG_MEMCPY_VIK</code>:
Select this option to use the optimized <code>memcpy()</code> function by Daniel Vik.
See licensing information in the top-level <code>COPYING</code> file.
Default: <code>n</code>.
</li></ul>
<p>
And if <code>CONFIG_MEMCPY_VIK</code>, the following tuning options are available:
@ -4474,6 +4474,15 @@ build
Compiles memcpy for 64 bit architectures
</li></ul>
<p><li>
If <code>CONFIG_ARCH_MEMSET</code> is <b>not</b> selected, then the following option is also available:
</p>
<ul><li>
<code>CONFIG_MEMSET_OPTSPEED</code>:
Select this option to use a version of <code>memset()</code> optimized for speed.
Default: <code>memset()</code> is optimized for size.
</li></ul>
<li>
<p>
The architecture may provide custom versions of certain standard header files: