Util: Add header for ARM util functions

This commit is contained in:
Jeffrey Pfau 2015-02-22 01:46:50 -08:00
parent f51044e94c
commit d497cecfd1
3 changed files with 21 additions and 5 deletions

View File

@ -8,6 +8,8 @@
#include "gba/gba.h"
#include "gba/io.h"
#include "util/arm-algo.h"
#ifdef NDEBUG
#define VIDEO_CHECKS false
#else

View File

@ -6,11 +6,7 @@
#include "main.h"
#include "gba/supervisor/thread.h"
#if defined(__ARM_NEON)
void _neon2x(void* dest, void* src, int width, int height);
void _neon4x(void* dest, void* src, int width, int height);
#endif
#include "util/arm-algo.h"
bool GBASDLInit(struct SDLSoftwareRenderer* renderer) {
#if !SDL_VERSION_ATLEAST(2, 0, 0)

18
src/util/arm-algo.h Normal file
View File

@ -0,0 +1,18 @@
/* Copyright (c) 2013-2015 Jeffrey Pfau
*
* 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 ARM_ALGO_H
#define ARM_ALGO_H
#ifdef __arm__
void _to16Bit(uint16_t* dest, uint32_t* src, size_t words);
#if defined(__ARM_NEON)
void _neon2x(void* dest, void* src, int width, int height);
void _neon4x(void* dest, void* src, int width, int height);
#endif
#endif
#endif