home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / suplib.lzh / SUPLIB / DOC / MEMORY.DOC < prev    next >
Text File  |  1991-08-16  |  1KB  |  53 lines

  1.  
  2.                 MEMORY.DOC
  3.             (SUP32.LIB and DRES.LIBRARY)
  4.  
  5.  
  6.     These are general memory handling routines which will perform operations
  7.     as quickly as possible.  They are super-optimized to use long word and
  8.     multiple-register moves whenever possible.
  9.  
  10. BZero                                    BZero
  11.  
  12.     (void) = BZero(buf, bytes)
  13.     APTR buf;
  14.     long bytes;
  15.  
  16.     Zero out an area of memory.  That was simple!  This is simply a special
  17.     case of BSet()
  18.  
  19.  
  20. BSet                                    BSet
  21.  
  22.     (void) = BSet(buf, bytes, value)
  23.     APTR buf;
  24.     long bytes;
  25.     long value;     (only lower 8 bits used)
  26.  
  27.     Jam a byte value into an area of memory.
  28.  
  29.  
  30. BMov                                    BMov
  31.  
  32.     (void) = BMov(src, dest, bytes)
  33.     APTR src, dest;
  34.     long bytes;
  35.  
  36.     Move a block of memory from the source to the destination.    An
  37.     ascending or decending copy is used depending on how the source and
  38.     destination overlap, if at all.  Both are optimized to use multiple-
  39.     register moves when possible, longword moves, or byte moves if the
  40.     two blocks are hopelessly out of alignment.
  41.  
  42.  
  43. BCmp                                    BCmp
  44.  
  45.     BOOL   = BCmp(src, dest, bytes)
  46.     APTR src, dest;
  47.     long bytes;
  48.  
  49.     Compare two blocks of memory.  (1) is returned on success, (0) on
  50.     failure.  Currently, this routine is not optimized at all.
  51.  
  52.  
  53.