/* Machine generated file, do not modify */
#include "HsFFI.h"
static HugsAPI4 *hugs = 0;
#include "string.h"

static void hugsprim_memmove_1(HugsStackPtr);
static void hugsprim_memmove_1(HugsStackPtr hugs_root)
{
    HsPtr arg1;
    HsPtr arg2;
    HsInt arg3;
    arg1 = hugs->getPtr();
    arg2 = hugs->getPtr();
    arg3 = hugs->getInt();
    memmove(arg1, arg2, arg3);
    
    hugs->returnIO(hugs_root,0);
}
#include "string.h"

static void hugsprim_memcpy_0(HugsStackPtr);
static void hugsprim_memcpy_0(HugsStackPtr hugs_root)
{
    HsPtr arg1;
    HsPtr arg2;
    HsInt arg3;
    arg1 = hugs->getPtr();
    arg2 = hugs->getPtr();
    arg3 = hugs->getInt();
    memcpy(arg1, arg2, arg3);
    
    hugs->returnIO(hugs_root,0);
}

static struct hugs_primitive hugs_primTable[] = {
    {"memmove", 5, hugsprim_memmove_1},
    {"memcpy", 5, hugsprim_memcpy_0},
};

static void hugs_primControl(int);
static void hugs_primControl(what)
int what; {
}
static struct hugs_primInfo hugs_prims = { hugs_primControl, hugs_primTable, 0 };

#ifdef __cplusplus
extern "C" {
#endif
DLLEXPORT(void) initModule(HugsAPI4 *);
DLLEXPORT(void) initModule(HugsAPI4 *hugsAPI) {
    hugs = hugsAPI;
    hugs->registerPrims(&hugs_prims);
}
#ifdef __cplusplus
}
#endif

