Remove memops from common package

This commit is contained in:
Gary Talent 2016-12-24 01:45:59 -06:00
parent 4eabc1741a
commit fdda964ac2
3 changed files with 0 additions and 52 deletions

View File

@ -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

View File

@ -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;
}
}
}
}

View File

@ -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