/[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 591 by ben.allan, Tue Apr 4 07:30:54 2006 UTC revision 592 by johnpye, Fri May 12 09:50:57 2006 UTC
# Line 157  extern void mem_move(POINTER from, POINT Line 157  extern void mem_move(POINTER from, POINT
157   *  @see mem_move_disjoint()   *  @see mem_move_disjoint()
158   */   */
159    
160  extern void mem_move_disjoint(POINTER from, POINTER too, size_t nbytes);  ASC_DLLSPEC(void) mem_move_disjoint(POINTER from, POINTER too, size_t nbytes);
161  /**<  /**<
162   *  Implementation function for mem_copy_cast().  Do not call this   *  Implementation function for mem_copy_cast().  Do not call this
163   *  function directly - use mem_copy_cast() instead.   *  function directly - use mem_copy_cast() instead.
# Line 175  extern void mem_move_disjoint(POINTER fr Line 175  extern void mem_move_disjoint(POINTER fr
175   *  @see mem_repl_byte()   *  @see mem_repl_byte()
176   */   */
177    
178  extern void mem_repl_byte(POINTER too, unsigned byte, size_t nbytes);  ASC_DLLSPEC(void) mem_repl_byte(POINTER too, unsigned byte, size_t nbytes);
179  /**<  /**<
180   *  Implementation function for mem_repl_byte_cast().  Do not call this   *  Implementation function for mem_repl_byte_cast().  Do not call this
181   *  function directly - use mem_repl_byte_cast() instead.   *  function directly - use mem_repl_byte_cast() instead.
# Line 213  extern void mem_zero_byte(POINTER too, u Line 213  extern void mem_zero_byte(POINTER too, u
213   *  @see mem_repl_word()   *  @see mem_repl_word()
214   */   */
215    
216  extern void mem_repl_word(POINTER too, unsigned word, size_t nwords);  ASC_DLLSPEC(void) mem_repl_word(POINTER too, unsigned word, size_t nwords);
217  /**<  /**<
218   *  Implementation function for mem_repl_word_cast().  Do not call this   *  Implementation function for mem_repl_word_cast().  Do not call this
219   *  function directly - use mem_repl_word_cast() instead.                       *  function directly - use mem_repl_word_cast() instead.                    
# Line 223  extern void mem_repl_word(POINTER too, u Line 223  extern void mem_repl_word(POINTER too, u
223  #if 0  #if 0
224  extern int mem_get_byte(long from);               /**< Returns the byte located at from. */  extern int mem_get_byte(long from);               /**< Returns the byte located at from. */
225  #endif  #endif
226  extern unsigned char mem_get_byte(long from);     /**< Returns the byte located at from. */  ASC_DLLSPEC(unsigned) char mem_get_byte(long from);     /**< Returns the byte located at from. */
227  extern int mem_get_int(long from);                /**< Returns the int located at from. */  ASC_DLLSPEC(int) mem_get_int(long from);                /**< Returns the int located at from. */
228  extern long mem_get_long(long from);              /**< Returns the long located at from. */  ASC_DLLSPEC(long) mem_get_long(long from);              /**< Returns the long located at from. */
229  extern double mem_get_float(long from);           /**< Returns the float located at from. */  ASC_DLLSPEC(double) mem_get_float(long from);           /**< Returns the float located at from. */
230  extern double mem_get_double(long from);          /**< Returns the double located at from. */  ASC_DLLSPEC(double) mem_get_double(long from);          /**< Returns the double located at from. */
231  extern void mem_set_byte(long from, int b);       /**< Sets the byte located at from. */  ASC_DLLSPEC(void) mem_set_byte(long from, int b);       /**< Sets the byte located at from. */
232  extern void mem_set_int(long from, int i);        /**< Sets the int located at from. */  ASC_DLLSPEC(void) mem_set_int(long from, int i);        /**< Sets the int located at from. */
233  extern void mem_set_long(long from, long l);      /**< Sets the long located at from. */  ASC_DLLSPEC(void) mem_set_long(long from, long l);      /**< Sets the long located at from. */
234  extern void mem_set_float(long from, double f);   /**< Sets the float located at from. */  ASC_DLLSPEC(void) mem_set_float(long from, double f);   /**< Sets the float located at from. */
235  extern void mem_set_double(long from, double d);  /**< Sets the double located at from. */  ASC_DLLSPEC(void) mem_set_double(long from, double d);  /**< Sets the double located at from. */
236    
237  #define mem_get_unsigned(from)  ((unsigned)mem_get_int(from))  #define mem_get_unsigned(from)  ((unsigned)mem_get_int(from))
238  /**< Returns the unsigned located at from. */  /**< Returns the unsigned located at from. */
# Line 299  struct mem_statistics { Line 299  struct mem_statistics {
299    int str_wid;        /**< elements/pointer in pool. */    int str_wid;        /**< elements/pointer in pool. */
300  };  };
301    
302  extern void mem_get_stats(struct mem_statistics *m_stats, mem_store_t ms);  ASC_DLLSPEC(void) mem_get_stats(struct mem_statistics *m_stats, mem_store_t ms);
303  /**<  /**<
304   *  Get statistics about a memory store.   *  Get statistics about a memory store.
305   *  Stuffs the user's interface structure, m_stats, with info   *  Stuffs the user's interface structure, m_stats, with info

Legend:
Removed from v.591  
changed lines
  Added in v.592

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