2015-08-04 21:57:37 -04:00
|
|
|
/*
|
|
|
|
|
* memory.h
|
2016-03-29 17:43:53 +02:00
|
|
|
*
|
|
|
|
|
* Quick Search algorithm adapted from http://igm.univ-mlv.fr/~lecroq/string/node19.html#SECTION00190
|
2015-08-04 21:57:37 -04:00
|
|
|
*/
|
2016-03-06 03:41:07 +01:00
|
|
|
|
2016-03-11 15:08:05 +01:00
|
|
|
#pragma once
|
2015-08-04 21:57:37 -04:00
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
2016-01-16 07:57:56 -05:00
|
|
|
void memcpy(void *dest, const void *src, u32 size);
|
2016-03-20 01:00:45 +01:00
|
|
|
void memset32(void *dest, u32 filler, u32 size);
|
2016-01-16 07:57:56 -05:00
|
|
|
int memcmp(const void *buf1, const void *buf2, u32 size);
|
2016-03-29 17:43:53 +02:00
|
|
|
u8 *memsearch(u8 *startPos, const void *pattern, u32 size, u32 patternSize);
|