Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bit crunching with gbytes and sbytes

Status
Not open for further replies.

bandito

Technical User
Mar 17, 2000
1
GB
hi,<br>
I try to get a piece of code working, that<br>
relies on this functionality:<br>
gbytes(p,u,q,b,s,n)<br>
gbyte (p,u,q,b)<br>
sbytes(p,u,q,b,s,n)<br>
sbyte (p,u,q,b)<br>
<br>
q >= 0 number of bits to be skipped preceeding first byte in p<br>
0 < b < sword byte size<br>
s >= 0 number of bits to be skipped between bytes<br>
n >= 0 number of bytes to be packed/unpacked<br>
<br>
gbytes unpacks n b bit bytes from p into u, starting by skipping<br>
q bits in p, then skipping s bits between bytes.<br>
gbyte unpacks one such byte.<br>
sbytes packs n b bit bytes from u into p, starting by skipping<br>
q bits in p, then skipping s bits between bytes.<br>
sbyte packs one such byte. */<br>
What are these routines called in hpunix, and how<br>
are they loaded, when compiled together with c and fortran code?<br>
Bernd.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top