> > +void * > +grub_memset (void *s, int c, grub_size_t n) > +{ > + unsigned char *p = (unsigned char *) s; > + > + while (n--) > + *p++ = (unsigned char) c; > + > + return s; > +} > Attached is a possible generic implementation. Not even compile-tested. Could you test it and compare disasm of this version on i386 and glibc i386 version. Perhaps they are equivalent. If they are for maintainance reasons it's better to always use generic one. > + > +#ifndef APPLE_CC > +void *memset (void *s, int c, grub_size_t n) > + __attribute__ ((alias ("grub_memset"))); > +#else > +void *memset (void *s, int c, grub_size_t n) > +{ > + return grub_memset (s, c, n); > +} > +#endif > > Thanks, > > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko