/[ascend]/trunk/base/generic/utilities/mem.h
ViewVC logotype

Diff of /trunk/base/generic/utilities/mem.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 60 by jds, Sun Oct 30 01:38:20 2005 UTC revision 61 by jds, Mon Nov 14 02:37:20 2005 UTC
# Line 126  Line 126 
126  #define mem_code_address(ptr) ((long)(ptr))  #define mem_code_address(ptr) ((long)(ptr))
127    
128  #define mem_move_cast(from,too,nbytes) \  #define mem_move_cast(from,too,nbytes) \
129     mem_move((POINTER)(from),(POINTER)(too),(unsigned)(nbytes))     mem_move((POINTER)(from),(POINTER)(too),(size_t)(nbytes))
130  /**<  /**<
131   *  Copies nbytes of data from memory location from to memory location too.   *  Copies nbytes of data from memory location from to memory location too.
132   *  The memory regions can be overlapping.   *  The memory regions can be overlapping.
133   *   *
134   *  @param from   unsigned, pointer to memory to copy from.   *  @param from   Pointer to memory to copy from.
135   *  @param too    unsigned, pointer to memory to receive copy.   *  @param too    Pointer to memory to receive copy.
136   *  @param nbytes unsigned, the number of bytes to copy.   *  @param nbytes The number of bytes to copy (size_t).
137   *  @return No return value.   *  @return No return value.
138   *  @see mem_move()   *  @see mem_move()
139   */   */
# Line 150  extern void mem_move(POINTER from, POINT Line 150  extern void mem_move(POINTER from, POINT
150   *  Copies nbytes of data from memory location from to memory location too.   *  Copies nbytes of data from memory location from to memory location too.
151   *  The memory regions can NOT be overlapping.   *  The memory regions can NOT be overlapping.
152   *   *
153   *  @param from   unsigned, pointer to memory to copy from.   *  @param from   Pointer to memory to copy from.
154   *  @param too    unsigned, pointer to memory to receive copy.   *  @param too    Pointer to memory to receive copy.
155   *  @param nbytes size_t, the number of bytes to copy.   *  @param nbytes The number of bytes to copy (size_t).
156   *  @return No return value.   *  @return No return value.
157   *  @see mem_move_disjoint()   *  @see mem_move_disjoint()
158   */   */
# Line 168  extern void mem_move_disjoint(POINTER fr Line 168  extern void mem_move_disjoint(POINTER fr
168  /**<  /**<
169   *  Replaces nbytes of data at memory location too with byte.   *  Replaces nbytes of data at memory location too with byte.
170   *   *
171   *  @param too    unsigned, pointer to start of block to be modified.   *  @param too    Pointer to start of block to be modified.
172   *  @param byte   unsigned, the character to write.   *  @param byte   The character to write (unsigned int).
173   *  @param nbytes size_t, the number of bytes to modify.   *  @param nbytes The number of bytes to modify (size_t).
174   *  @return No return value.   *  @return No return value.
175   *  @see mem_repl_byte()   *  @see mem_repl_byte()
176   */   */
# Line 188  extern void mem_repl_byte(POINTER too, u Line 188  extern void mem_repl_byte(POINTER too, u
188   *  byte is ignored - it is a placeholder for mem_repl_byte   *  byte is ignored - it is a placeholder for mem_repl_byte
189   *  substitutability.   *  substitutability.
190   *   *
191   *  @param too    unsigned, pointer to start of block to be modified.   *  @param too    Pointer to start of block to be modified.
192   *  @param byte   unsigned, ignored.   *  @param byte   Ignored (unsigned).
193   *  @param nbytes size_t, the number of bytes to zero.   *  @param nbytes The number of bytes to zero (size_t).
194   *  @return No return value.   *  @return No return value.
195   *  @see mem_zero_byte()   *  @see mem_zero_byte()
196   */   */
# Line 206  extern void mem_zero_byte(POINTER too, u Line 206  extern void mem_zero_byte(POINTER too, u
206  /**<  /**<
207   *  Replaces nwords of data at memory location too with word.   *  Replaces nwords of data at memory location too with word.
208   *   *
209   *  @param too    unsigned, pointer to start of block to be modified.   *  @param too    Pointer to start of block to be modified.
210   *  @param word   unsigned, the word to write.   *  @param word   The word to write (unsigned).
211   *  @param nbytes size_t, the number of bytes to modify.   *  @param nbytes The number of bytes to modify (size_t).
212   *  @return No return value.   *  @return No return value.
213   *  @see mem_repl_word()   *  @see mem_repl_word()
214   */   */

Legend:
Removed from v.60  
changed lines
  Added in v.61

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22