From 6c1487acb0ccde4618ac6e78a595422ee3e6b972 Mon Sep 17 00:00:00 2001 From: Alberto Fustinoni Date: Tue, 20 Jun 2017 10:27:03 +0900 Subject: [PATCH] added all common --- libretro-common/.gitignore | 1 + libretro-common/audio/audio_mix.c | 314 ++ libretro-common/audio/audio_mixer.c | 652 +++ .../audio/conversion/float_to_s16.c | 160 + .../audio/conversion/float_to_s16_neon.S | 69 + .../audio/conversion/float_to_s16_neon.c | 64 + .../audio/conversion/s16_to_float.c | 189 + .../audio/conversion/s16_to_float_neon.S | 76 + .../audio/conversion/s16_to_float_neon.c | 71 + libretro-common/audio/dsp_filter.c | 324 ++ .../audio/dsp_filters/BassBoost.dsp | 12 + .../audio/dsp_filters/ChipTuneEnhance.dsp | 22 + libretro-common/audio/dsp_filters/Chorus.dsp | 14 + libretro-common/audio/dsp_filters/EQ.dsp | 41 + libretro-common/audio/dsp_filters/Echo.dsp | 19 + .../audio/dsp_filters/EchoReverb.dsp | 12 + .../audio/dsp_filters/HighShelfDampen.dsp | 7 + libretro-common/audio/dsp_filters/IIR.dsp | 23 + .../audio/dsp_filters/LowPassCPS.dsp | 47 + libretro-common/audio/dsp_filters/Makefile | 91 + libretro-common/audio/dsp_filters/Mono.dsp | 12 + libretro-common/audio/dsp_filters/Panning.dsp | 23 + libretro-common/audio/dsp_filters/Phaser.dsp | 11 + libretro-common/audio/dsp_filters/Reverb.dsp | 10 + libretro-common/audio/dsp_filters/WahWah.dsp | 10 + libretro-common/audio/dsp_filters/chorus.c | 161 + libretro-common/audio/dsp_filters/echo.c | 182 + libretro-common/audio/dsp_filters/eq.c | 352 ++ libretro-common/audio/dsp_filters/fft/fft.c | 205 + libretro-common/audio/dsp_filters/fft/fft.h | 46 + libretro-common/audio/dsp_filters/iir.c | 372 ++ libretro-common/audio/dsp_filters/link.T | 4 + libretro-common/audio/dsp_filters/panning.c | 112 + libretro-common/audio/dsp_filters/phaser.c | 146 + libretro-common/audio/dsp_filters/reverb.c | 327 ++ libretro-common/audio/dsp_filters/wahwah.c | 148 + .../audio/resampler/audio_resampler.c | 170 + .../resampler/drivers/nearest_resampler.c | 88 + .../audio/resampler/drivers/null_resampler.c | 56 + .../audio/resampler/drivers/sinc_resampler.c | 589 +++ .../resampler/drivers/sinc_resampler_neon.S | 74 + libretro-common/compat/compat_fnmatch.c | 159 + libretro-common/compat/compat_getopt.c | 219 + libretro-common/compat/compat_ifaddrs.c | 619 +++ libretro-common/compat/compat_posix_string.c | 106 + libretro-common/compat/compat_snprintf.c | 58 + libretro-common/compat/compat_strcasestr.c | 59 + libretro-common/compat/compat_strl.c | 64 + libretro-common/crt/include/string.h | 10 + libretro-common/crt/string.c | 34 + libretro-common/dynamic/dylib.c | 150 + libretro-common/encodings/encoding_crc32.c | 89 + libretro-common/encodings/encoding_utf.c | 260 ++ libretro-common/features/features_cpu.c | 773 ++++ libretro-common/file/archive_file.c | 897 ++++ libretro-common/file/archive_file_7z.c | 471 ++ libretro-common/file/archive_file_zlib.c | 378 ++ libretro-common/file/config_file.c | 978 ++++ libretro-common/file/config_file_userdata.c | 149 + libretro-common/file/file_path.c | 896 ++++ libretro-common/file/nbio/nbio_stdio.c | 205 + libretro-common/file/retro_dirent.c | 163 + libretro-common/formats/bmp/rbmp.c | 626 +++ libretro-common/formats/bmp/rbmp_encode.c | 230 + libretro-common/formats/image_texture.c | 315 ++ libretro-common/formats/image_transfer.c | 282 ++ libretro-common/formats/jpeg/rjpeg.c | 2626 +++++++++++ libretro-common/formats/json/jsonsax.c | 316 ++ libretro-common/formats/json/jsonsax_full.c | 3931 +++++++++++++++++ libretro-common/formats/png/rpng.c | 1195 +++++ libretro-common/formats/png/rpng_encode.c | 388 ++ libretro-common/formats/png/rpng_internal.h | 56 + libretro-common/formats/tga/rtga.c | 447 ++ libretro-common/formats/wav/rwav.c | 186 + libretro-common/formats/xml/rxml.c | 493 +++ libretro-common/formats/xml/test/Makefile | 27 + libretro-common/formats/xml/test/rxml_test.c | 67 + libretro-common/gfx/gl_capabilities.c | 330 ++ libretro-common/gfx/scaler/pixconv.c | 817 ++++ libretro-common/gfx/scaler/scaler.c | 343 ++ libretro-common/gfx/scaler/scaler_filter.c | 244 + libretro-common/gfx/scaler/scaler_int.c | 261 ++ libretro-common/glsm/glsm.c | 2278 ++++++++++ libretro-common/glsym/README.md | 12 + libretro-common/glsym/glgen.py | 132 + libretro-common/glsym/glsym_es2.c | 410 ++ libretro-common/glsym/glsym_es3.c | 414 ++ libretro-common/glsym/glsym_gl.c | 2083 +++++++++ libretro-common/glsym/rglgen.c | 43 + libretro-common/glsym/rglgen.py | 132 + libretro-common/hash/rhash.c | 559 +++ libretro-common/include/audio/audio_mix.h | 93 + libretro-common/include/audio/audio_mixer.h | 74 + .../include/audio/audio_resampler.h | 184 + .../include/audio/conversion/float_to_s16.h | 55 + .../include/audio/conversion/s16_to_float.h | 55 + libretro-common/include/audio/dsp_filter.h | 53 + libretro-common/include/clamping.h | 65 + libretro-common/include/compat/apple_compat.h | 84 + libretro-common/include/compat/fnmatch.h | 30 + libretro-common/include/compat/getopt.h | 75 + libretro-common/include/compat/ifaddrs.h | 53 + libretro-common/include/compat/intrinsics.h | 85 + libretro-common/include/compat/msvc.h | 104 + libretro-common/include/compat/msvc/stdint.h | 254 ++ libretro-common/include/compat/posix_string.h | 61 + libretro-common/include/compat/strcasestr.h | 49 + libretro-common/include/compat/strl.h | 58 + libretro-common/include/compat/zconf.h | 483 ++ libretro-common/include/compat/zconf.h.in | 483 ++ libretro-common/include/compat/zlib.h | 1780 ++++++++ libretro-common/include/compat/zutil.h | 253 ++ libretro-common/include/dynamic/dylib.h | 71 + libretro-common/include/encodings/crc32.h | 38 + libretro-common/include/encodings/utf.h | 53 + libretro-common/include/encodings/win32.h | 63 + libretro-common/include/fastcpy.h | 94 + .../include/features/features_cpu.h | 73 + libretro-common/include/file/archive_file.h | 213 + libretro-common/include/file/config_file.h | 166 + .../include/file/config_file_userdata.h | 61 + libretro-common/include/file/file_path.h | 478 ++ libretro-common/include/file/nbio.h | 102 + libretro-common/include/filters.h | 93 + libretro-common/include/formats/image.h | 95 + libretro-common/include/formats/jsonsax.h | 71 + .../include/formats/jsonsax_full.h | 1040 +++++ libretro-common/include/formats/rbmp.h | 62 + libretro-common/include/formats/rjpeg.h | 49 + libretro-common/include/formats/rpng.h | 62 + libretro-common/include/formats/rtga.h | 48 + libretro-common/include/formats/rwav.h | 87 + libretro-common/include/formats/rxml.h | 95 + libretro-common/include/gfx/gl_capabilities.h | 68 + libretro-common/include/gfx/math/matrix_3x3.h | 254 ++ libretro-common/include/gfx/math/matrix_4x4.h | 396 ++ libretro-common/include/gfx/math/vector_2.h | 139 + libretro-common/include/gfx/math/vector_3.h | 69 + libretro-common/include/gfx/math/vector_4.h | 62 + libretro-common/include/gfx/scaler/filter.h | 38 + libretro-common/include/gfx/scaler/pixconv.h | 100 + libretro-common/include/gfx/scaler/scaler.h | 129 + .../include/gfx/scaler/scaler_int.h | 47 + libretro-common/include/gfx/video_frame.h | 218 + libretro-common/include/glsm/glsm.h | 157 + libretro-common/include/glsm/glsmsym.h | 414 ++ libretro-common/include/glsym/glsym.h | 39 + libretro-common/include/glsym/glsym_es2.h | 639 +++ libretro-common/include/glsym/glsym_es3.h | 650 +++ libretro-common/include/glsym/glsym_gl.h | 3140 +++++++++++++ libretro-common/include/glsym/rglgen.h | 47 + .../include/glsym/rglgen_headers.h | 81 + libretro-common/include/libco.h | 79 + libretro-common/include/libretro.h | 2166 +++++++++ libretro-common/include/libretro_dspfilter.h | 187 + libretro-common/include/libretro_vulkan.h | 398 ++ libretro-common/include/lists/dir_list.h | 70 + libretro-common/include/lists/file_list.h | 122 + libretro-common/include/lists/string_list.h | 160 + libretro-common/include/math/complex.h | 77 + libretro-common/include/math/float_minmax.h | 62 + libretro-common/include/math/fxp.h | 62 + libretro-common/include/memalign.h | 40 + libretro-common/include/memmap.h | 49 + libretro-common/include/net/net_compat.h | 247 ++ libretro-common/include/net/net_http.h | 75 + libretro-common/include/net/net_http_parse.h | 53 + libretro-common/include/net/net_ifinfo.h | 57 + libretro-common/include/net/net_natt.h | 83 + libretro-common/include/net/net_socket.h | 94 + libretro-common/include/queues/fifo_queue.h | 78 + .../include/queues/message_queue.h | 88 + libretro-common/include/queues/task_queue.h | 236 + libretro-common/include/retro_assert.h | 36 + libretro-common/include/retro_common.h | 37 + libretro-common/include/retro_dirent.h | 107 + libretro-common/include/retro_endianness.h | 246 ++ libretro-common/include/retro_environment.h | 78 + libretro-common/include/rhash.h | 132 + libretro-common/include/rthreads/rthreads.h | 229 + .../include/streams/interface_stream.h | 91 + .../include/streams/memory_stream.h | 61 + .../include/streams/stdin_stream.h | 40 + .../include/streams/trans_stream.h | 108 + libretro-common/include/string/stdstring.h | 94 + libretro-common/include/utils/md5.h | 52 + .../include/vulkan/vulkan_symbol_wrapper.h | 356 ++ libretro-common/libco/amd64.c | 204 + libretro-common/libco/armeabi.c | 107 + libretro-common/libco/fiber.c | 58 + libretro-common/libco/libco.c | 23 + libretro-common/libco/ppc.c | 407 ++ libretro-common/libco/psp2.c | 113 + libretro-common/libco/scefiber.c | 96 + libretro-common/libco/sjlj.c | 115 + libretro-common/libco/ucontext.c | 81 + libretro-common/libco/x86.c | 117 + libretro-common/lists/dir_list.c | 278 ++ libretro-common/lists/file_list.c | 487 ++ libretro-common/lists/string_list.c | 312 ++ libretro-common/memmap/memalign.c | 64 + libretro-common/memmap/memmap.c | 162 + libretro-common/net/net_compat.c | 450 ++ libretro-common/net/net_http.c | 656 +++ libretro-common/net/net_http_parse.c | 103 + libretro-common/net/net_ifinfo.c | 182 + libretro-common/net/net_natt.c | 236 + libretro-common/net/net_socket.c | 346 ++ libretro-common/queues/fifo_queue.c | 84 + libretro-common/queues/message_queue.c | 240 + libretro-common/queues/task_queue.c | 820 ++++ libretro-common/rthreads/gx_pthread.h | 185 + libretro-common/rthreads/psp_pthread.h | 309 ++ libretro-common/rthreads/rthreads.c | 822 ++++ libretro-common/rthreads/xenon_sdl_threads.c | 59 + libretro-common/samples/file/nbio/Makefile | 25 + libretro-common/samples/file/nbio/nbio_test.c | 63 + libretro-common/samples/formats/png/Makefile | 47 + .../samples/formats/png/rpng_test.c | 207 + libretro-common/samples/net/Makefile | 44 + libretro-common/samples/net/http_test | Bin 0 -> 20464 bytes libretro-common/samples/net/net_http_test.c | 58 + libretro-common/samples/net/net_ifinfo | Bin 0 -> 8888 bytes libretro-common/samples/net/net_ifinfo_test.c | 45 + libretro-common/samples/net/udp-test.c | 59 + libretro-common/samples/utils/Makefile | 106 + libretro-common/streams/interface_stream.c | 268 ++ libretro-common/streams/memory_stream.c | 190 + libretro-common/streams/stdin_stream.c | 151 + libretro-common/streams/trans_stream.c | 95 + libretro-common/streams/trans_stream_pipe.c | 95 + libretro-common/streams/trans_stream_zlib.c | 281 ++ libretro-common/string/stdstring.c | 202 + libretro-common/utils/crc32.c | 43 + libretro-common/utils/djb2.c | 26 + libretro-common/utils/md5.c | 346 ++ libretro-common/utils/sha1.c | 421 ++ libretro-common/utils/sha1_main.c | 176 + .../vulkan/vulkan_symbol_wrapper.c | 485 ++ 239 files changed, 62217 insertions(+) create mode 100644 libretro-common/.gitignore create mode 100644 libretro-common/audio/audio_mix.c create mode 100644 libretro-common/audio/audio_mixer.c create mode 100644 libretro-common/audio/conversion/float_to_s16.c create mode 100644 libretro-common/audio/conversion/float_to_s16_neon.S create mode 100644 libretro-common/audio/conversion/float_to_s16_neon.c create mode 100644 libretro-common/audio/conversion/s16_to_float.c create mode 100644 libretro-common/audio/conversion/s16_to_float_neon.S create mode 100644 libretro-common/audio/conversion/s16_to_float_neon.c create mode 100644 libretro-common/audio/dsp_filter.c create mode 100644 libretro-common/audio/dsp_filters/BassBoost.dsp create mode 100644 libretro-common/audio/dsp_filters/ChipTuneEnhance.dsp create mode 100644 libretro-common/audio/dsp_filters/Chorus.dsp create mode 100644 libretro-common/audio/dsp_filters/EQ.dsp create mode 100644 libretro-common/audio/dsp_filters/Echo.dsp create mode 100644 libretro-common/audio/dsp_filters/EchoReverb.dsp create mode 100644 libretro-common/audio/dsp_filters/HighShelfDampen.dsp create mode 100644 libretro-common/audio/dsp_filters/IIR.dsp create mode 100644 libretro-common/audio/dsp_filters/LowPassCPS.dsp create mode 100644 libretro-common/audio/dsp_filters/Makefile create mode 100644 libretro-common/audio/dsp_filters/Mono.dsp create mode 100644 libretro-common/audio/dsp_filters/Panning.dsp create mode 100644 libretro-common/audio/dsp_filters/Phaser.dsp create mode 100644 libretro-common/audio/dsp_filters/Reverb.dsp create mode 100644 libretro-common/audio/dsp_filters/WahWah.dsp create mode 100644 libretro-common/audio/dsp_filters/chorus.c create mode 100644 libretro-common/audio/dsp_filters/echo.c create mode 100644 libretro-common/audio/dsp_filters/eq.c create mode 100644 libretro-common/audio/dsp_filters/fft/fft.c create mode 100644 libretro-common/audio/dsp_filters/fft/fft.h create mode 100644 libretro-common/audio/dsp_filters/iir.c create mode 100644 libretro-common/audio/dsp_filters/link.T create mode 100644 libretro-common/audio/dsp_filters/panning.c create mode 100644 libretro-common/audio/dsp_filters/phaser.c create mode 100644 libretro-common/audio/dsp_filters/reverb.c create mode 100644 libretro-common/audio/dsp_filters/wahwah.c create mode 100644 libretro-common/audio/resampler/audio_resampler.c create mode 100644 libretro-common/audio/resampler/drivers/nearest_resampler.c create mode 100644 libretro-common/audio/resampler/drivers/null_resampler.c create mode 100644 libretro-common/audio/resampler/drivers/sinc_resampler.c create mode 100644 libretro-common/audio/resampler/drivers/sinc_resampler_neon.S create mode 100644 libretro-common/compat/compat_fnmatch.c create mode 100644 libretro-common/compat/compat_getopt.c create mode 100644 libretro-common/compat/compat_ifaddrs.c create mode 100644 libretro-common/compat/compat_posix_string.c create mode 100644 libretro-common/compat/compat_snprintf.c create mode 100644 libretro-common/compat/compat_strcasestr.c create mode 100644 libretro-common/compat/compat_strl.c create mode 100644 libretro-common/crt/include/string.h create mode 100644 libretro-common/crt/string.c create mode 100644 libretro-common/dynamic/dylib.c create mode 100644 libretro-common/encodings/encoding_crc32.c create mode 100644 libretro-common/encodings/encoding_utf.c create mode 100644 libretro-common/features/features_cpu.c create mode 100644 libretro-common/file/archive_file.c create mode 100644 libretro-common/file/archive_file_7z.c create mode 100644 libretro-common/file/archive_file_zlib.c create mode 100644 libretro-common/file/config_file.c create mode 100644 libretro-common/file/config_file_userdata.c create mode 100644 libretro-common/file/file_path.c create mode 100644 libretro-common/file/nbio/nbio_stdio.c create mode 100644 libretro-common/file/retro_dirent.c create mode 100644 libretro-common/formats/bmp/rbmp.c create mode 100644 libretro-common/formats/bmp/rbmp_encode.c create mode 100644 libretro-common/formats/image_texture.c create mode 100644 libretro-common/formats/image_transfer.c create mode 100644 libretro-common/formats/jpeg/rjpeg.c create mode 100644 libretro-common/formats/json/jsonsax.c create mode 100644 libretro-common/formats/json/jsonsax_full.c create mode 100644 libretro-common/formats/png/rpng.c create mode 100644 libretro-common/formats/png/rpng_encode.c create mode 100644 libretro-common/formats/png/rpng_internal.h create mode 100644 libretro-common/formats/tga/rtga.c create mode 100644 libretro-common/formats/wav/rwav.c create mode 100644 libretro-common/formats/xml/rxml.c create mode 100644 libretro-common/formats/xml/test/Makefile create mode 100644 libretro-common/formats/xml/test/rxml_test.c create mode 100644 libretro-common/gfx/gl_capabilities.c create mode 100644 libretro-common/gfx/scaler/pixconv.c create mode 100644 libretro-common/gfx/scaler/scaler.c create mode 100644 libretro-common/gfx/scaler/scaler_filter.c create mode 100644 libretro-common/gfx/scaler/scaler_int.c create mode 100644 libretro-common/glsm/glsm.c create mode 100644 libretro-common/glsym/README.md create mode 100644 libretro-common/glsym/glgen.py create mode 100644 libretro-common/glsym/glsym_es2.c create mode 100644 libretro-common/glsym/glsym_es3.c create mode 100644 libretro-common/glsym/glsym_gl.c create mode 100644 libretro-common/glsym/rglgen.c create mode 100644 libretro-common/glsym/rglgen.py create mode 100644 libretro-common/hash/rhash.c create mode 100644 libretro-common/include/audio/audio_mix.h create mode 100644 libretro-common/include/audio/audio_mixer.h create mode 100644 libretro-common/include/audio/audio_resampler.h create mode 100644 libretro-common/include/audio/conversion/float_to_s16.h create mode 100644 libretro-common/include/audio/conversion/s16_to_float.h create mode 100644 libretro-common/include/audio/dsp_filter.h create mode 100644 libretro-common/include/clamping.h create mode 100644 libretro-common/include/compat/apple_compat.h create mode 100644 libretro-common/include/compat/fnmatch.h create mode 100644 libretro-common/include/compat/getopt.h create mode 100644 libretro-common/include/compat/ifaddrs.h create mode 100644 libretro-common/include/compat/intrinsics.h create mode 100644 libretro-common/include/compat/msvc.h create mode 100644 libretro-common/include/compat/msvc/stdint.h create mode 100644 libretro-common/include/compat/posix_string.h create mode 100644 libretro-common/include/compat/strcasestr.h create mode 100644 libretro-common/include/compat/strl.h create mode 100644 libretro-common/include/compat/zconf.h create mode 100644 libretro-common/include/compat/zconf.h.in create mode 100644 libretro-common/include/compat/zlib.h create mode 100644 libretro-common/include/compat/zutil.h create mode 100644 libretro-common/include/dynamic/dylib.h create mode 100644 libretro-common/include/encodings/crc32.h create mode 100644 libretro-common/include/encodings/utf.h create mode 100644 libretro-common/include/encodings/win32.h create mode 100644 libretro-common/include/fastcpy.h create mode 100644 libretro-common/include/features/features_cpu.h create mode 100644 libretro-common/include/file/archive_file.h create mode 100644 libretro-common/include/file/config_file.h create mode 100644 libretro-common/include/file/config_file_userdata.h create mode 100644 libretro-common/include/file/file_path.h create mode 100644 libretro-common/include/file/nbio.h create mode 100644 libretro-common/include/filters.h create mode 100644 libretro-common/include/formats/image.h create mode 100644 libretro-common/include/formats/jsonsax.h create mode 100644 libretro-common/include/formats/jsonsax_full.h create mode 100644 libretro-common/include/formats/rbmp.h create mode 100644 libretro-common/include/formats/rjpeg.h create mode 100644 libretro-common/include/formats/rpng.h create mode 100644 libretro-common/include/formats/rtga.h create mode 100644 libretro-common/include/formats/rwav.h create mode 100644 libretro-common/include/formats/rxml.h create mode 100644 libretro-common/include/gfx/gl_capabilities.h create mode 100644 libretro-common/include/gfx/math/matrix_3x3.h create mode 100644 libretro-common/include/gfx/math/matrix_4x4.h create mode 100644 libretro-common/include/gfx/math/vector_2.h create mode 100644 libretro-common/include/gfx/math/vector_3.h create mode 100644 libretro-common/include/gfx/math/vector_4.h create mode 100644 libretro-common/include/gfx/scaler/filter.h create mode 100644 libretro-common/include/gfx/scaler/pixconv.h create mode 100644 libretro-common/include/gfx/scaler/scaler.h create mode 100644 libretro-common/include/gfx/scaler/scaler_int.h create mode 100644 libretro-common/include/gfx/video_frame.h create mode 100644 libretro-common/include/glsm/glsm.h create mode 100644 libretro-common/include/glsm/glsmsym.h create mode 100644 libretro-common/include/glsym/glsym.h create mode 100644 libretro-common/include/glsym/glsym_es2.h create mode 100644 libretro-common/include/glsym/glsym_es3.h create mode 100644 libretro-common/include/glsym/glsym_gl.h create mode 100644 libretro-common/include/glsym/rglgen.h create mode 100644 libretro-common/include/glsym/rglgen_headers.h create mode 100644 libretro-common/include/libco.h create mode 100644 libretro-common/include/libretro.h create mode 100644 libretro-common/include/libretro_dspfilter.h create mode 100644 libretro-common/include/libretro_vulkan.h create mode 100644 libretro-common/include/lists/dir_list.h create mode 100644 libretro-common/include/lists/file_list.h create mode 100644 libretro-common/include/lists/string_list.h create mode 100644 libretro-common/include/math/complex.h create mode 100644 libretro-common/include/math/float_minmax.h create mode 100644 libretro-common/include/math/fxp.h create mode 100644 libretro-common/include/memalign.h create mode 100644 libretro-common/include/memmap.h create mode 100644 libretro-common/include/net/net_compat.h create mode 100644 libretro-common/include/net/net_http.h create mode 100644 libretro-common/include/net/net_http_parse.h create mode 100644 libretro-common/include/net/net_ifinfo.h create mode 100644 libretro-common/include/net/net_natt.h create mode 100644 libretro-common/include/net/net_socket.h create mode 100644 libretro-common/include/queues/fifo_queue.h create mode 100644 libretro-common/include/queues/message_queue.h create mode 100644 libretro-common/include/queues/task_queue.h create mode 100644 libretro-common/include/retro_assert.h create mode 100644 libretro-common/include/retro_common.h create mode 100644 libretro-common/include/retro_dirent.h create mode 100644 libretro-common/include/retro_endianness.h create mode 100644 libretro-common/include/retro_environment.h create mode 100644 libretro-common/include/rhash.h create mode 100644 libretro-common/include/rthreads/rthreads.h create mode 100644 libretro-common/include/streams/interface_stream.h create mode 100644 libretro-common/include/streams/memory_stream.h create mode 100644 libretro-common/include/streams/stdin_stream.h create mode 100644 libretro-common/include/streams/trans_stream.h create mode 100644 libretro-common/include/string/stdstring.h create mode 100644 libretro-common/include/utils/md5.h create mode 100644 libretro-common/include/vulkan/vulkan_symbol_wrapper.h create mode 100644 libretro-common/libco/amd64.c create mode 100644 libretro-common/libco/armeabi.c create mode 100644 libretro-common/libco/fiber.c create mode 100644 libretro-common/libco/libco.c create mode 100644 libretro-common/libco/ppc.c create mode 100644 libretro-common/libco/psp2.c create mode 100644 libretro-common/libco/scefiber.c create mode 100644 libretro-common/libco/sjlj.c create mode 100644 libretro-common/libco/ucontext.c create mode 100644 libretro-common/libco/x86.c create mode 100644 libretro-common/lists/dir_list.c create mode 100644 libretro-common/lists/file_list.c create mode 100644 libretro-common/lists/string_list.c create mode 100644 libretro-common/memmap/memalign.c create mode 100644 libretro-common/memmap/memmap.c create mode 100644 libretro-common/net/net_compat.c create mode 100644 libretro-common/net/net_http.c create mode 100644 libretro-common/net/net_http_parse.c create mode 100644 libretro-common/net/net_ifinfo.c create mode 100644 libretro-common/net/net_natt.c create mode 100644 libretro-common/net/net_socket.c create mode 100644 libretro-common/queues/fifo_queue.c create mode 100644 libretro-common/queues/message_queue.c create mode 100644 libretro-common/queues/task_queue.c create mode 100644 libretro-common/rthreads/gx_pthread.h create mode 100644 libretro-common/rthreads/psp_pthread.h create mode 100644 libretro-common/rthreads/rthreads.c create mode 100644 libretro-common/rthreads/xenon_sdl_threads.c create mode 100644 libretro-common/samples/file/nbio/Makefile create mode 100644 libretro-common/samples/file/nbio/nbio_test.c create mode 100644 libretro-common/samples/formats/png/Makefile create mode 100644 libretro-common/samples/formats/png/rpng_test.c create mode 100644 libretro-common/samples/net/Makefile create mode 100644 libretro-common/samples/net/http_test create mode 100644 libretro-common/samples/net/net_http_test.c create mode 100644 libretro-common/samples/net/net_ifinfo create mode 100644 libretro-common/samples/net/net_ifinfo_test.c create mode 100644 libretro-common/samples/net/udp-test.c create mode 100644 libretro-common/samples/utils/Makefile create mode 100644 libretro-common/streams/interface_stream.c create mode 100644 libretro-common/streams/memory_stream.c create mode 100644 libretro-common/streams/stdin_stream.c create mode 100644 libretro-common/streams/trans_stream.c create mode 100644 libretro-common/streams/trans_stream_pipe.c create mode 100644 libretro-common/streams/trans_stream_zlib.c create mode 100644 libretro-common/string/stdstring.c create mode 100644 libretro-common/utils/crc32.c create mode 100644 libretro-common/utils/djb2.c create mode 100644 libretro-common/utils/md5.c create mode 100644 libretro-common/utils/sha1.c create mode 100644 libretro-common/utils/sha1_main.c create mode 100644 libretro-common/vulkan/vulkan_symbol_wrapper.c diff --git a/libretro-common/.gitignore b/libretro-common/.gitignore new file mode 100644 index 0000000..5761abc --- /dev/null +++ b/libretro-common/.gitignore @@ -0,0 +1 @@ +*.o diff --git a/libretro-common/audio/audio_mix.c b/libretro-common/audio/audio_mix.c new file mode 100644 index 0000000..ac1dc1e --- /dev/null +++ b/libretro-common/audio/audio_mix.c @@ -0,0 +1,314 @@ +/* Copyright (C) 2010-2017 The RetroArch team + * + * --------------------------------------------------------------------------------------- + * The following license statement only applies to this file (audio_mix.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. + */ + +#include