home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d168 / dillonstuff.lha / doc / dres / memory.doc < prev    next >
Text File  |  1988-11-22  |  1KB  |  49 lines

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