📄 balib.html
字号:
<html><head><!-- /vobs/wpwr/docs/vxworks/ref/bALib.html - generated by refgen from ../sparc/bALib.s --> <title> bALib </title></head><body bgcolor="#FFFFFF"> <hr><a name="top"></a><p align=right><a href="libIndex.html"><i>VxWorks Reference Manual : Libraries</i></a></p></blockquote><h1>bALib</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong>bALib</strong> - buffer manipulation library SPARC assembly language routines </p></blockquote><h4>ROUTINES</h4><blockquote><p><p><b><i><a href="./bALib.html#bzeroDoubles">bzeroDoubles</a></i>( )</b> - zero out a buffer eight bytes at a time (SPARC)<br><b><i><a href="./bALib.html#bfillDoubles">bfillDoubles</a></i>( )</b> - fill a buffer with a specified eight-byte pattern (SPARC)<br><b><i><a href="./bALib.html#bcopyDoubles">bcopyDoubles</a></i>( )</b> - copy one buffer to another eight bytes at a time (SPARC)<br><p></blockquote><h4>DESCRIPTION</h4><blockquote><p>This library contains routines to manipulate buffers, which are simplyvariable length byte arrays. These routines are highly optimized loops.<p>All address pointers must be properly aligned for 8-byte moves. Note thatbuffer lengths are specified in terms of bytes or doubles. Since this ismeant to be a high-performance operation, the minimum number of bytes is 256.<p></blockquote><h4>NOTE</h4><blockquote><p>None of the buffer routines have been hand-coded in assembly. These areadditional routines that exploit the SPARC's LDD and STD instructions.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bALib.html#top">bALib</a></b>, <b><a href="./bLib.html#top">bLib</a></b>, ansiString<hr><a name="bzeroDoubles"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>bzeroDoubles</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>bzeroDoubles</i>( )</strong> - zero out a buffer eight bytes at a time (SPARC)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS bzeroDoubles ( void * buffer, /* 8-byte aligned buffer */ int nbytes /* multiple of 256 bytes */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This routine fills the first <i>nbytes</i> characters of the specified bufferwith 0, eight bytes at a time. The buffer address is assumed to be 8-bytealigned. The number of bytes will be rounded up to a multiple of 256 bytes.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, if it runs to completion.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bALib.html#top">bALib</a></b>, <b><i><a href="./bLib.html#bzero">bzero</a></i>( )</b><hr><a name="bfillDoubles"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>bfillDoubles</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>bfillDoubles</i>( )</strong> - fill a buffer with a specified eight-byte pattern (SPARC)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS bfillDoubles ( void * buffer, /* 8-byte aligned buffer */ int nbytes, /* Multiple of 256 bytes */ ULONG bits_63to32, /* Upper 32 bits of fill pattern */ ULONG bits_31to0 /* Lower 32 bits of fill pattern */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function copies a specified 8-byte pattern to the buffer, which mustbe 8-byte aligned. The filling is done eight bytes at a time. The numberof bytes filled will be rounded up to a multiple of 256 bytes.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, if it runs to completion.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bALib.html#top">bALib</a></b>, <b><i><a href="./bLib.html#bfill">bfill</a></i>( )</b><hr><a name="bcopyDoubles"></a><p align=right><a href="rtnIndex.html"><i>Libraries : Routines</i></a></p></blockquote><h1><i>bcopyDoubles</i>( )</h1> <blockquote></a></blockquote><h4>NAME</h4><blockquote> <p><strong><i>bcopyDoubles</i>( )</strong> - copy one buffer to another eight bytes at a time (SPARC)</p></blockquote><h4>SYNOPSIS</h4><blockquote><p><pre>STATUS bcopyDoubles ( void * source, /* 8-byte aligned source buffer */ void * destination, /* 8-byte aligned destination buffer */ int ndoubles /* Number of 256-byte quantities */ )</pre></blockquote><h4>DESCRIPTION</h4><blockquote><p>This function copies the buffer <i>source</i> to the buffer <i>destination</i>, bothof which must be 8-byte aligned. The copying is done eight bytes at a time.Note the count is the number of doubles, or the number of bytes divided byeight. The number of bytes copied will always be a multiple of 256.<p></blockquote><h4>RETURNS</h4><blockquote><p>OK, if it runs to completion.<p></blockquote><h4>SEE ALSO</h4><blockquote><p><b><a href="./bALib.html#top">bALib</a></b>, <b><i><a href="./bLib.html#bcopy">bcopy</a></i>( )</b></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -