Remove memops from common package
This commit is contained in:
parent
4eabc1741a
commit
fdda964ac2
@ -3,7 +3,6 @@ cmake_minimum_required(VERSION 2.8.8)
|
|||||||
add_library(
|
add_library(
|
||||||
NostalgiaCommon OBJECT
|
NostalgiaCommon OBJECT
|
||||||
bounds.cpp
|
bounds.cpp
|
||||||
memops.cpp
|
|
||||||
point.cpp
|
point.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -12,7 +11,6 @@ install(
|
|||||||
FILES
|
FILES
|
||||||
bounds.hpp
|
bounds.hpp
|
||||||
common.hpp
|
common.hpp
|
||||||
memops.hpp
|
|
||||||
point.hpp
|
point.hpp
|
||||||
DESTINATION
|
DESTINATION
|
||||||
include/wombat/common
|
include/wombat/common
|
||||||
|
@ -1,29 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2016 gtalent2@gmail.com
|
|
||||||
*
|
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
*/
|
|
||||||
#include "memops.hpp"
|
|
||||||
|
|
||||||
namespace nostalgia {
|
|
||||||
namespace common {
|
|
||||||
|
|
||||||
void memcpy(void *src, void *dest, int size) {
|
|
||||||
char *srcBuf = (char*) src;
|
|
||||||
char *dstBuf = (char*) dest;
|
|
||||||
for (int i = 0; i < size; i++) {
|
|
||||||
dstBuf[i] = (char) srcBuf[i];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void memset(void *ptr, char val, int size) {
|
|
||||||
char *buf = (char*) ptr;
|
|
||||||
for (int i = 0; i < size; i++) {
|
|
||||||
buf[i] = val;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
/*
|
|
||||||
* Copyright 2016 gtalent2@gmail.com
|
|
||||||
*
|
|
||||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
*/
|
|
||||||
#ifndef NOSTALGIA_COMMON_MEMOPS_HPP
|
|
||||||
#define NOSTALGIA_COMMON_MEMOPS_HPP
|
|
||||||
|
|
||||||
namespace nostalgia {
|
|
||||||
namespace common {
|
|
||||||
|
|
||||||
void memcpy(void *src, void *dest, int size);
|
|
||||||
|
|
||||||
void memset(void *ptr, char val, int size);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Reference in New Issue
Block a user