X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Futil.h;h=2b35721dc8435fcc0e4ebbd3afa300f725c3028d;hb=47baa3c82ce3a97f27b79a1e7202cb358115fef9;hp=ab530741ea0de1b215ae953b95f16e6b2ba49c89;hpb=cbbb6679c243c56829ed470595de4ae98ef2975d;p=seabios.git diff --git a/src/util.h b/src/util.h index ab53074..2b35721 100644 --- a/src/util.h +++ b/src/util.h @@ -52,15 +52,6 @@ memset(void *s, int c, size_t n) ((char *)s)[--n] = c; } -static inline void -memcpy(void *d, void *s, size_t n) -{ - while (n) { - ((char *)d)[n-1] = ((char *)s)[n-1]; - n--; - } -} - static inline void eoi_master_pic() { @@ -147,10 +138,4 @@ handle_ret(struct bregs *regs, u8 code) set_cf(regs, code); } -unsigned long -align(unsigned long addr, unsigned long v) -{ - return (addr + v - 1) & ~(v - 1); -} - #endif // util.h