Revert "Move cpu_features to libretro-common"

This reverts commit 2b8ff3bf3844e20ba8021f1f40c3e59f64b69772.
This commit is contained in:
twinaphex 2016-05-10 09:32:24 +02:00
parent 2b8ff3bf38
commit 35ea37b37f
24 changed files with 65 additions and 102 deletions

View File

@ -204,7 +204,7 @@ OBJ += frontend/frontend.o \
movie.o \ movie.o \
record/record_driver.o \ record/record_driver.o \
record/drivers/record_null.o \ record/drivers/record_null.o \
libretro-common/features/cpu_features.o \ performance.o \
performance_counters.o \ performance_counters.o \
verbosity.o verbosity.o

View File

@ -23,13 +23,13 @@
#include <file/file_path.h> #include <file/file_path.h>
#include <lists/dir_list.h> #include <lists/dir_list.h>
#include <features/cpu_features.h>
#include "audio_dsp_filter.h" #include "audio_dsp_filter.h"
#include "audio_filters/dspfilter.h" #include "audio_filters/dspfilter.h"
#include "../config_file_userdata.h" #include "../config_file_userdata.h"
#include "../frontend/frontend_driver.h" #include "../frontend/frontend_driver.h"
#include "../performance.h"
#include "../performance_counters.h" #include "../performance_counters.h"
#include "../dynamic.h" #include "../dynamic.h"

View File

@ -17,11 +17,11 @@
#include <string.h> #include <string.h>
#include <string/stdstring.h> #include <string/stdstring.h>
#include <features/cpu_features.h>
#include "audio_resampler_driver.h" #include "audio_resampler_driver.h"
#include "../config_file_userdata.h" #include "../config_file_userdata.h"
#ifdef RARCH_INTERNAL #ifdef RARCH_INTERNAL
#include "../performance.h"
#include "../performance_counters.h" #include "../performance_counters.h"
#endif #endif
#ifndef DONT_HAVE_STRING_LIST #ifndef DONT_HAVE_STRING_LIST

View File

@ -23,9 +23,8 @@
#include <altivec.h> #include <altivec.h>
#endif #endif
#include <features/cpu_features.h>
#ifdef RARCH_INTERNAL #ifdef RARCH_INTERNAL
#include "../performance.h"
#include "../performance_counters.h" #include "../performance_counters.h"
#endif #endif

View File

@ -23,7 +23,6 @@
#include <compat/posix_string.h> #include <compat/posix_string.h>
#include <dynamic/dylib.h> #include <dynamic/dylib.h>
#include <string/stdstring.h> #include <string/stdstring.h>
#include <features/cpu_features.h>
#include <retro_assert.h> #include <retro_assert.h>
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
@ -39,6 +38,7 @@
#include "record/record_driver.h" #include "record/record_driver.h"
#include "core.h" #include "core.h"
#include "performance_counters.h" #include "performance_counters.h"
#include "performance.h"
#include "system.h" #include "system.h"
#include "gfx/video_context_driver.h" #include "gfx/video_context_driver.h"

View File

@ -25,7 +25,6 @@
#endif #endif
#include <file/config_file.h> #include <file/config_file.h>
#include <features/cpu_features.h>
#include "video_thread_wrapper.h" #include "video_thread_wrapper.h"
#include "../frontend/frontend_driver.h" #include "../frontend/frontend_driver.h"
@ -34,6 +33,7 @@
#include "../config.def.h" #include "../config.def.h"
#include "../retroarch.h" #include "../retroarch.h"
#include "../runloop.h" #include "../runloop.h"
#include "../performance.h"
#include "../performance_counters.h" #include "../performance_counters.h"
#include "../list_special.h" #include "../list_special.h"
#include "../core.h" #include "../core.h"

View File

@ -19,12 +19,12 @@
#include <file/file_path.h> #include <file/file_path.h>
#include <lists/dir_list.h> #include <lists/dir_list.h>
#include <dynamic/dylib.h> #include <dynamic/dylib.h>
#include <features/cpu_features.h>
#include "../frontend/frontend_driver.h" #include "../frontend/frontend_driver.h"
#include "../config_file_userdata.h" #include "../config_file_userdata.h"
#include "../dynamic.h" #include "../dynamic.h"
#include "../general.h" #include "../general.h"
#include "../performance.h"
#include "../performance_counters.h" #include "../performance_counters.h"
#include "../verbosity.h" #include "../verbosity.h"
#include "video_filter.h" #include "video_filter.h"

View File

@ -19,11 +19,11 @@
#include <limits.h> #include <limits.h>
#include <rthreads/rthreads.h> #include <rthreads/rthreads.h>
#include <features/cpu_features.h>
#include "video_thread_wrapper.h" #include "video_thread_wrapper.h"
#include "font_driver.h" #include "font_driver.h"
#include "video_shader_driver.h" #include "video_shader_driver.h"
#include "../performance.h"
#include "../performance_counters.h" #include "../performance_counters.h"
#include "../runloop.h" #include "../runloop.h"
#include "../verbosity.h" #include "../verbosity.h"

View File

@ -62,7 +62,7 @@ ENCODINGS
/*============================================================ /*============================================================
PERFORMANCE PERFORMANCE
============================================================ */ ============================================================ */
#include "../libretro-common/features/cpu_features.c" #include "../performance.c"
#include "../performance_counters.c" #include "../performance_counters.c"
/*============================================================ /*============================================================

View File

@ -1,25 +1,3 @@
/* Copyright (C) 2010-2016 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (rjpeg.c).
* ---------------------------------------------------------------------------------------
*
* Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/* Modified version of stb_image's JPEG sources. /* Modified version of stb_image's JPEG sources.
*/ */

View File

@ -1,23 +1,17 @@
/* Copyright (C) 2010-2016 The RetroArch team /* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2015 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
* *
* --------------------------------------------------------------------------------------- * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* The following license statement only applies to this file (image.h). * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* --------------------------------------------------------------------------------------- * PURPOSE. See the GNU General Public License for more details.
* *
* Permission is hereby granted, free of charge, * You should have received a copy of the GNU General Public License along with RetroArch.
* to any person obtaining a copy of this software and associated documentation files (the "Software"), * If not, see <http://www.gnu.org/licenses/>.
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifndef __RARCH_IMAGE_CONTEXT_H #ifndef __RARCH_IMAGE_CONTEXT_H

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2010-2016 The RetroArch team /* Copyright (C) 2010-2015 The RetroArch team
* *
* --------------------------------------------------------------------------------------- * ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (jsonsax.h). * The following license statement only applies to this file (jsonsax.h).

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2010-2016 The RetroArch team /* Copyright (C) 2010-2015 The RetroArch team
* *
* --------------------------------------------------------------------------------------- * ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (rjpeg.h). * The following license statement only applies to this file (rjpeg.h).

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2010-2016 The RetroArch team /* Copyright (C) 2010-2015 The RetroArch team
* *
* --------------------------------------------------------------------------------------- * ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (rpng.h). * The following license statement only applies to this file (rpng.h).

View File

@ -1,4 +1,4 @@
/* Copyright (C) 2010-2016 The RetroArch team /* Copyright (C) 2010-2015 The RetroArch team
* *
* --------------------------------------------------------------------------------------- * ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (rxml.h). * The following license statement only applies to this file (rxml.h).

View File

@ -18,8 +18,6 @@
#include <compat/strl.h> #include <compat/strl.h>
#include <string/stdstring.h> #include <string/stdstring.h>
#include <features/cpu_features.h>
#include "menu_generic.h" #include "menu_generic.h"
#include "../menu_driver.h" #include "../menu_driver.h"
@ -30,6 +28,7 @@
#include "../menu_entries.h" #include "../menu_entries.h"
#include "../../configuration.h" #include "../../configuration.h"
#include "../../performance.h"
#include "../../performance_counters.h" #include "../../performance_counters.h"
#include "../../input/input_autodetect.h" #include "../../input/input_autodetect.h"
#include "../../input/input_config.h" #include "../../input/input_config.h"

View File

@ -16,14 +16,13 @@
#include <math.h> #include <math.h>
#include <string.h> #include <string.h>
#include <compat/strl.h> #include <compat/strl.h>
#include <encodings/utf.h> #include <encodings/utf.h>
#include <retro_miscellaneous.h> #include <retro_miscellaneous.h>
#include <features/cpu_features.h>
#include "menu_animation.h" #include "menu_animation.h"
#include "../configuration.h" #include "../configuration.h"
#include "../performance.h"
#include "../performance_counters.h" #include "../performance_counters.h"
#define IDEAL_DELTA_TIME (1.0 / 60.0 * 1000000.0) #define IDEAL_DELTA_TIME (1.0 / 60.0 * 1000000.0)

View File

@ -27,8 +27,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <features/cpu_features.h>
#include "menu_driver.h" #include "menu_driver.h"
#include "menu_input.h" #include "menu_input.h"
#include "menu_animation.h" #include "menu_animation.h"
@ -41,6 +39,7 @@
#include "../general.h" #include "../general.h"
#include "../managers/cheat_manager.h" #include "../managers/cheat_manager.h"
#include "../performance.h"
#include "../performance_counters.h" #include "../performance_counters.h"
#include "../core.h" #include "../core.h"
#include "../input/input_joypad_driver.h" #include "../input/input_joypad_driver.h"

View File

@ -17,8 +17,8 @@
#include <stdlib.h> #include <stdlib.h>
#include <net/net_http.h> #include <net/net_http.h>
#include <features/cpu_features.h>
#include "../performance.h"
#include "../performance_counters.h" #include "../performance_counters.h"
#include "net_http_special.h" #include "net_http_special.h"

View File

@ -1,29 +1,31 @@
/* Copyright (C) 2010-2016 The RetroArch team /* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
* *
* --------------------------------------------------------------------------------------- * RetroArch is free software: you can redistribute it and/or modify it under the terms
* The following license statement only applies to this file (cpu_features.c). * of the GNU General Public License as published by the Free Software Found-
* --------------------------------------------------------------------------------------- * ation, either version 3 of the License, or (at your option) any later version.
* *
* Permission is hereby granted, free of charge, * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* to any person obtaining a copy of this software and associated documentation files (the "Software"), * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* to deal in the Software without restriction, including without limitation the rights to * PURPOSE. See the GNU General Public License for more details.
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
* *
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. * You should have received a copy of the GNU General Public License along with RetroArch.
* * If not, see <http://www.gnu.org/licenses/>.
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <stdio.h> #include <stdio.h>
#include "libretro.h"
#include "performance.h"
#include "general.h"
#include "compat/strl.h"
#include "verbosity.h"
#include <compat/strl.h> #ifdef _WIN32
#include <features/cpu_features.h> #define PERF_LOG_FMT "[PERF]: Avg (%s): %I64u ticks, %I64u runs.\n"
#else
#define PERF_LOG_FMT "[PERF]: Avg (%s): %llu ticks, %llu runs.\n"
#endif
#if defined(_WIN32) #if defined(_WIN32)
#include <direct.h> #include <direct.h>

View File

@ -1,23 +1,17 @@
/* Copyright (C) 2010-2016 The RetroArch team /* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2016 - Daniel De Matteis
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
* *
* --------------------------------------------------------------------------------------- * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* The following license statement only applies to this file (cpu_features.h). * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* --------------------------------------------------------------------------------------- * PURPOSE. See the GNU General Public License for more details.
* *
* Permission is hereby granted, free of charge, * You should have received a copy of the GNU General Public License along with RetroArch.
* to any person obtaining a copy of this software and associated documentation files (the "Software"), * If not, see <http://www.gnu.org/licenses/>.
* to deal in the Software without restriction, including without limitation the rights to
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,
* and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifndef _LIBRETRO_SDK_CPU_INFO_H #ifndef _LIBRETRO_SDK_CPU_INFO_H

View File

@ -17,8 +17,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <features/cpu_features.h> #include "performance.h"
#include "performance_counters.h" #include "performance_counters.h"
#include "general.h" #include "general.h"

View File

@ -42,7 +42,6 @@
#include <file/file_path.h> #include <file/file_path.h>
#include <retro_stat.h> #include <retro_stat.h>
#include <retro_assert.h> #include <retro_assert.h>
#include <features/cpu_features.h>
#include "content.h" #include "content.h"
#include "core_type.h" #include "core_type.h"
@ -59,6 +58,7 @@
#include "configuration.h" #include "configuration.h"
#include "general.h" #include "general.h"
#include "runloop.h" #include "runloop.h"
#include "performance.h"
#include "managers/cheat_manager.h" #include "managers/cheat_manager.h"
#include "system.h" #include "system.h"

View File

@ -23,7 +23,6 @@
#include <file/file_path.h> #include <file/file_path.h>
#include <retro_inline.h> #include <retro_inline.h>
#include <retro_assert.h> #include <retro_assert.h>
#include <features/cpu_features.h>
#include <queues/message_queue.h> #include <queues/message_queue.h>
#ifdef HAVE_THREADS #ifdef HAVE_THREADS
#include <rthreads/rthreads.h> #include <rthreads/rthreads.h>
@ -39,6 +38,7 @@
#include "autosave.h" #include "autosave.h"
#include "core_info.h" #include "core_info.h"
#include "configuration.h" #include "configuration.h"
#include "performance.h"
#include "movie.h" #include "movie.h"
#include "retroarch.h" #include "retroarch.h"
#include "runloop.h" #include "runloop.h"