pike.git / src / pike_memory.h

version» Context lines:

pike.git/src/pike_memory.h:144:   struct mem_searcher   {    enum methods method;    char *needle;    size_t needlelen;    size_t hsize, max;    struct link links[MEMSEARCH_LINKS];    struct link *set[MEMSEARCH_LINKS];   };    - /* -  * The purpose of this function is to avoid dead store elimination in cases when -  * sensitive data has to be cleared from memory. -  */ - static inline void ATTRIBUTE((unused)) * guaranteed_memset(void * p, int c, size_t n) { -  volatile char * _p = (char *)p; -  while (n--) *_p++ = c; -  return (void *)p; - } + PMOD_EXPORT void secure_zero(void *p, size_t n);      #ifdef HANDLES_UNALIGNED_MEMORY_ACCESS   /* it is faster to just do the unaligned operation. */   static inline UINT64 ATTRIBUTE((unused)) get_unaligned64(const void *ptr) {    return *(UINT64*)ptr;   }      static inline unsigned INT32 ATTRIBUTE((unused)) get_unaligned32(const void *ptr) {    return *(unsigned INT32*)ptr;   }