From ce9ce1d35387ef8144e53bf071396fa075bfb6c5 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 12 May 2018 17:56:33 +0200 Subject: [PATCH] Squashed 'libretro-common/' content from commit 377cef30fa git-subtree-dir: libretro-common git-subtree-split: 377cef30faf410724141b280665db1b6b82cbc7b --- .gitignore | 1 + audio/audio_mix.c | 318 ++ audio/audio_mixer.c | 1254 ++++++ 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 + audio/dsp_filter.c | 325 ++ audio/dsp_filters/BassBoost.dsp | 12 + audio/dsp_filters/ChipTuneEnhance.dsp | 22 + audio/dsp_filters/Chorus.dsp | 14 + audio/dsp_filters/Crystalizer.dsp | 4 + audio/dsp_filters/EQ.dsp | 41 + audio/dsp_filters/Echo.dsp | 19 + audio/dsp_filters/EchoReverb.dsp | 12 + audio/dsp_filters/HighShelfDampen.dsp | 7 + audio/dsp_filters/IIR.dsp | 23 + audio/dsp_filters/LowPassCPS.dsp | 47 + audio/dsp_filters/Makefile | 100 + audio/dsp_filters/Mono.dsp | 12 + audio/dsp_filters/Panning.dsp | 23 + audio/dsp_filters/Phaser.dsp | 11 + audio/dsp_filters/Reverb.dsp | 10 + audio/dsp_filters/Tremolo.dsp | 7 + audio/dsp_filters/Vibrato.dsp | 7 + audio/dsp_filters/WahWah.dsp | 10 + audio/dsp_filters/chorus.c | 161 + audio/dsp_filters/crystalizer.c | 93 + audio/dsp_filters/echo.c | 182 + audio/dsp_filters/eq.c | 352 ++ audio/dsp_filters/fft/fft.c | 205 + audio/dsp_filters/fft/fft.h | 46 + audio/dsp_filters/iir.c | 372 ++ audio/dsp_filters/link.T | 4 + audio/dsp_filters/panning.c | 112 + audio/dsp_filters/phaser.c | 146 + audio/dsp_filters/reverb.c | 327 ++ audio/dsp_filters/tremolo.c | 133 + audio/dsp_filters/vibrato.c | 169 + audio/dsp_filters/wahwah.c | 148 + audio/resampler/audio_resampler.c | 172 + audio/resampler/drivers/nearest_resampler.c | 90 + audio/resampler/drivers/null_resampler.c | 58 + audio/resampler/drivers/sinc_resampler.c | 720 +++ audio/resampler/drivers/sinc_resampler_neon.S | 74 + compat/compat_fnmatch.c | 159 + compat/compat_getopt.c | 219 + compat/compat_ifaddrs.c | 619 +++ compat/compat_posix_string.c | 104 + compat/compat_snprintf.c | 85 + compat/compat_strcasestr.c | 58 + compat/compat_strl.c | 69 + compat/compat_vscprintf.c | 44 + compat/fopen_utf8.c | 60 + crt/include/string.h | 10 + crt/string.c | 34 + dynamic/dylib.c | 167 + encodings/encoding_crc32.c | 90 + encodings/encoding_utf.c | 516 +++ features/features_cpu.c | 813 ++++ file/archive_file.c | 897 ++++ file/archive_file_7z.c | 512 +++ file/archive_file_zlib.c | 384 ++ file/config_file.c | 1015 +++++ file/config_file_userdata.c | 149 + file/file_path.c | 1205 +++++ file/nbio/nbio_intf.c | 85 + file/nbio/nbio_linux.c | 245 + file/nbio/nbio_stdio.c | 268 ++ file/nbio/nbio_unixmmap.c | 191 + file/nbio/nbio_windowsmmap.c | 224 + file/retro_dirent.c | 300 ++ formats/bmp/rbmp.c | 623 +++ formats/bmp/rbmp_encode.c | 232 + formats/image_texture.c | 315 ++ formats/image_transfer.c | 286 ++ formats/jpeg/rjpeg.c | 2626 +++++++++++ formats/json/jsonsax.c | 316 ++ formats/json/jsonsax_full.c | 3929 +++++++++++++++++ formats/libchdr/libchdr_bitstream.c | 125 + formats/libchdr/libchdr_cdrom.c | 422 ++ formats/libchdr/libchdr_chd.c | 1875 ++++++++ formats/libchdr/libchdr_flac.c | 323 ++ formats/libchdr/libchdr_huffman.c | 563 +++ formats/png/rpng.c | 1194 +++++ formats/png/rpng_encode.c | 391 ++ formats/png/rpng_internal.h | 56 + formats/tga/rtga.c | 446 ++ formats/wav/rwav.c | 186 + formats/xml/rxml.c | 488 ++ formats/xml/test/Makefile | 27 + formats/xml/test/rxml_test.c | 67 + gfx/gl_capabilities.c | 335 ++ gfx/scaler/pixconv.c | 817 ++++ gfx/scaler/scaler.c | 347 ++ gfx/scaler/scaler_filter.c | 243 + gfx/scaler/scaler_int.c | 261 ++ glsm/glsm.c | 2278 ++++++++++ glsym/README.md | 12 + glsym/glgen.py | 132 + glsym/glsym_es2.c | 410 ++ glsym/glsym_es3.c | 414 ++ glsym/glsym_gl.c | 2083 +++++++++ glsym/rglgen.c | 43 + glsym/rglgen.py | 132 + hash/rhash.c | 561 +++ include/audio/audio_mix.h | 93 + include/audio/audio_mixer.h | 84 + include/audio/audio_resampler.h | 195 + include/audio/conversion/float_to_s16.h | 55 + include/audio/conversion/s16_to_float.h | 55 + include/audio/dsp_filter.h | 53 + include/boolean.h | 39 + include/clamping.h | 65 + include/compat/apple_compat.h | 84 + include/compat/fnmatch.h | 30 + include/compat/fopen_utf8.h | 34 + include/compat/getopt.h | 75 + include/compat/ifaddrs.h | 53 + include/compat/intrinsics.h | 85 + include/compat/msvc.h | 128 + include/compat/msvc/stdint.h | 258 ++ include/compat/posix_string.h | 61 + include/compat/strcasestr.h | 49 + include/compat/strl.h | 60 + include/compat/zconf.h | 483 ++ include/compat/zconf.h.in | 483 ++ include/compat/zlib.h | 1780 ++++++++ include/compat/zutil.h | 253 ++ include/dynamic/dylib.h | 71 + include/encodings/crc32.h | 37 + include/encodings/utf.h | 67 + include/encodings/win32.h | 63 + include/fastcpy.h | 94 + include/features/features_cpu.h | 73 + include/file/archive_file.h | 213 + include/file/config_file.h | 177 + include/file/config_file_userdata.h | 61 + include/file/file_path.h | 491 ++ include/file/nbio.h | 124 + include/filters.h | 93 + include/formats/image.h | 95 + include/formats/jsonsax.h | 71 + include/formats/jsonsax_full.h | 1040 +++++ include/formats/rbmp.h | 62 + include/formats/rjpeg.h | 49 + include/formats/rpng.h | 62 + include/formats/rtga.h | 48 + include/formats/rwav.h | 87 + include/formats/rxml.h | 95 + include/gfx/gl_capabilities.h | 68 + include/gfx/math/matrix_3x3.h | 254 ++ include/gfx/math/matrix_4x4.h | 396 ++ include/gfx/math/vector_2.h | 139 + include/gfx/math/vector_3.h | 69 + include/gfx/math/vector_4.h | 62 + include/gfx/scaler/filter.h | 38 + include/gfx/scaler/pixconv.h | 100 + include/gfx/scaler/scaler.h | 129 + include/gfx/scaler/scaler_int.h | 47 + include/gfx/video_frame.h | 220 + include/glsm/glsm.h | 157 + include/glsm/glsmsym.h | 414 ++ include/glsym/glsym.h | 39 + include/glsym/glsym_es2.h | 639 +++ include/glsym/glsym_es3.h | 650 +++ include/glsym/glsym_gl.h | 3140 +++++++++++++ include/glsym/rglgen.h | 47 + include/glsym/rglgen_headers.h | 81 + include/libchdr/bitstream.h | 43 + include/libchdr/cdrom.h | 70 + include/libchdr/chd.h | 406 ++ include/libchdr/coretypes.h | 22 + include/libchdr/flac.h | 70 + include/libchdr/huffman.h | 90 + include/libchdr/minmax.h | 21 + include/libco.h | 79 + include/libretro.h | 2397 ++++++++++ include/libretro_d3d.h | 60 + include/libretro_dspfilter.h | 187 + include/libretro_vulkan.h | 398 ++ include/lists/dir_list.h | 70 + include/lists/file_list.h | 144 + include/lists/string_list.h | 160 + include/math/complex.h | 77 + include/math/float_minmax.h | 62 + include/math/fxp.h | 62 + include/memalign.h | 40 + include/memmap.h | 52 + include/net/net_compat.h | 249 ++ include/net/net_http.h | 79 + include/net/net_http_parse.h | 53 + include/net/net_ifinfo.h | 57 + include/net/net_natt.h | 84 + include/net/net_socket.h | 96 + include/net/net_socket_ssl.h | 50 + include/queues/fifo_queue.h | 79 + include/queues/message_queue.h | 88 + include/queues/task_queue.h | 238 + include/retro_assert.h | 36 + include/retro_common.h | 37 + include/retro_common_api.h | 118 + include/retro_dirent.h | 71 + include/retro_endianness.h | 258 ++ include/retro_environment.h | 106 + include/retro_inline.h | 39 + include/retro_math.h | 94 + include/retro_miscellaneous.h | 158 + include/retro_timers.h | 112 + include/rhash.h | 132 + include/rthreads/async_job.h | 35 + include/rthreads/rsemaphore.h | 54 + include/rthreads/rthreads.h | 229 + include/streams/chd_stream.h | 62 + include/streams/file_stream.h | 107 + include/streams/file_stream_transforms.h | 89 + include/streams/interface_stream.h | 109 + include/streams/memory_stream.h | 61 + include/streams/stdin_stream.h | 40 + include/streams/trans_stream.h | 108 + include/string/stdstring.h | 137 + include/utils/md5.h | 52 + include/vfs/vfs_implementation.h | 65 + include/vulkan/vulkan_symbol_wrapper.h | 356 ++ libco/aarch64.c | 129 + libco/amd64.c | 204 + libco/armeabi.c | 107 + libco/fiber.c | 71 + libco/libco.c | 36 + libco/ppc.c | 407 ++ libco/psp2.c | 113 + libco/scefiber.c | 96 + libco/sjlj.c | 115 + libco/ucontext.c | 81 + libco/x86.c | 117 + lists/dir_list.c | 272 ++ lists/file_list.c | 472 ++ lists/string_list.c | 307 ++ lists/vector_list.c | 95 + memmap/memalign.c | 64 + memmap/memmap.c | 163 + net/net_compat.c | 641 +++ net/net_http.c | 792 ++++ net/net_http_parse.c | 103 + net/net_ifinfo.c | 182 + net/net_natt.c | 256 ++ net/net_socket.c | 355 ++ net/net_socket_ssl.c | 260 ++ queues/fifo_queue.c | 84 + queues/message_queue.c | 240 + queues/task_queue.c | 823 ++++ rthreads/ctr_pthread.h | 196 + rthreads/gx_pthread.h | 185 + rthreads/psp_pthread.h | 309 ++ rthreads/rthreads.c | 868 ++++ rthreads/xenon_sdl_threads.c | 59 + samples/file/nbio/Makefile | 32 + samples/file/nbio/nbio_test.c | 69 + samples/formats/png/Makefile | 58 + samples/formats/png/rpng_test.c | 207 + samples/net/Makefile | 64 + samples/net/http_test | Bin 0 -> 20464 bytes samples/net/net_http_test.c | 58 + samples/net/net_ifinfo | Bin 0 -> 8888 bytes samples/net/net_ifinfo_test.c | 45 + samples/net/udp-test.c | 59 + samples/utils/Makefile | 104 + streams/chd_stream.c | 431 ++ streams/file_stream.c | 501 +++ streams/file_stream_transforms.c | 144 + streams/interface_stream.c | 488 ++ streams/memory_stream.c | 190 + streams/stdin_stream.c | 151 + streams/trans_stream.c | 95 + streams/trans_stream_pipe.c | 95 + streams/trans_stream_zlib.c | 290 ++ string/stdstring.c | 217 + utils/crc32.c | 43 + utils/djb2.c | 26 + utils/md5.c | 346 ++ utils/sha1.c | 421 ++ utils/sha1_main.c | 190 + vfs/vfs_implementation.c | 591 +++ vulkan/vulkan_symbol_wrapper.c | 485 ++ 286 files changed, 73819 insertions(+) create mode 100644 .gitignore create mode 100644 audio/audio_mix.c create mode 100644 audio/audio_mixer.c create mode 100644 audio/conversion/float_to_s16.c create mode 100644 audio/conversion/float_to_s16_neon.S create mode 100644 audio/conversion/float_to_s16_neon.c create mode 100644 audio/conversion/s16_to_float.c create mode 100644 audio/conversion/s16_to_float_neon.S create mode 100644 audio/conversion/s16_to_float_neon.c create mode 100644 audio/dsp_filter.c create mode 100644 audio/dsp_filters/BassBoost.dsp create mode 100644 audio/dsp_filters/ChipTuneEnhance.dsp create mode 100644 audio/dsp_filters/Chorus.dsp create mode 100644 audio/dsp_filters/Crystalizer.dsp create mode 100644 audio/dsp_filters/EQ.dsp create mode 100644 audio/dsp_filters/Echo.dsp create mode 100644 audio/dsp_filters/EchoReverb.dsp create mode 100644 audio/dsp_filters/HighShelfDampen.dsp create mode 100644 audio/dsp_filters/IIR.dsp create mode 100644 audio/dsp_filters/LowPassCPS.dsp create mode 100644 audio/dsp_filters/Makefile create mode 100644 audio/dsp_filters/Mono.dsp create mode 100644 audio/dsp_filters/Panning.dsp create mode 100644 audio/dsp_filters/Phaser.dsp create mode 100644 audio/dsp_filters/Reverb.dsp create mode 100644 audio/dsp_filters/Tremolo.dsp create mode 100644 audio/dsp_filters/Vibrato.dsp create mode 100644 audio/dsp_filters/WahWah.dsp create mode 100644 audio/dsp_filters/chorus.c create mode 100644 audio/dsp_filters/crystalizer.c create mode 100644 audio/dsp_filters/echo.c create mode 100644 audio/dsp_filters/eq.c create mode 100644 audio/dsp_filters/fft/fft.c create mode 100644 audio/dsp_filters/fft/fft.h create mode 100644 audio/dsp_filters/iir.c create mode 100644 audio/dsp_filters/link.T create mode 100644 audio/dsp_filters/panning.c create mode 100644 audio/dsp_filters/phaser.c create mode 100644 audio/dsp_filters/reverb.c create mode 100644 audio/dsp_filters/tremolo.c create mode 100644 audio/dsp_filters/vibrato.c create mode 100644 audio/dsp_filters/wahwah.c create mode 100644 audio/resampler/audio_resampler.c create mode 100644 audio/resampler/drivers/nearest_resampler.c create mode 100644 audio/resampler/drivers/null_resampler.c create mode 100644 audio/resampler/drivers/sinc_resampler.c create mode 100644 audio/resampler/drivers/sinc_resampler_neon.S create mode 100644 compat/compat_fnmatch.c create mode 100644 compat/compat_getopt.c create mode 100644 compat/compat_ifaddrs.c create mode 100644 compat/compat_posix_string.c create mode 100644 compat/compat_snprintf.c create mode 100644 compat/compat_strcasestr.c create mode 100644 compat/compat_strl.c create mode 100644 compat/compat_vscprintf.c create mode 100644 compat/fopen_utf8.c create mode 100644 crt/include/string.h create mode 100644 crt/string.c create mode 100644 dynamic/dylib.c create mode 100644 encodings/encoding_crc32.c create mode 100644 encodings/encoding_utf.c create mode 100644 features/features_cpu.c create mode 100644 file/archive_file.c create mode 100644 file/archive_file_7z.c create mode 100644 file/archive_file_zlib.c create mode 100644 file/config_file.c create mode 100644 file/config_file_userdata.c create mode 100644 file/file_path.c create mode 100644 file/nbio/nbio_intf.c create mode 100644 file/nbio/nbio_linux.c create mode 100644 file/nbio/nbio_stdio.c create mode 100644 file/nbio/nbio_unixmmap.c create mode 100644 file/nbio/nbio_windowsmmap.c create mode 100644 file/retro_dirent.c create mode 100644 formats/bmp/rbmp.c create mode 100644 formats/bmp/rbmp_encode.c create mode 100644 formats/image_texture.c create mode 100644 formats/image_transfer.c create mode 100644 formats/jpeg/rjpeg.c create mode 100644 formats/json/jsonsax.c create mode 100644 formats/json/jsonsax_full.c create mode 100644 formats/libchdr/libchdr_bitstream.c create mode 100644 formats/libchdr/libchdr_cdrom.c create mode 100644 formats/libchdr/libchdr_chd.c create mode 100644 formats/libchdr/libchdr_flac.c create mode 100644 formats/libchdr/libchdr_huffman.c create mode 100644 formats/png/rpng.c create mode 100644 formats/png/rpng_encode.c create mode 100644 formats/png/rpng_internal.h create mode 100644 formats/tga/rtga.c create mode 100644 formats/wav/rwav.c create mode 100644 formats/xml/rxml.c create mode 100644 formats/xml/test/Makefile create mode 100644 formats/xml/test/rxml_test.c create mode 100644 gfx/gl_capabilities.c create mode 100644 gfx/scaler/pixconv.c create mode 100644 gfx/scaler/scaler.c create mode 100644 gfx/scaler/scaler_filter.c create mode 100644 gfx/scaler/scaler_int.c create mode 100644 glsm/glsm.c create mode 100644 glsym/README.md create mode 100755 glsym/glgen.py create mode 100644 glsym/glsym_es2.c create mode 100644 glsym/glsym_es3.c create mode 100644 glsym/glsym_gl.c create mode 100644 glsym/rglgen.c create mode 100755 glsym/rglgen.py create mode 100644 hash/rhash.c create mode 100644 include/audio/audio_mix.h create mode 100644 include/audio/audio_mixer.h create mode 100644 include/audio/audio_resampler.h create mode 100644 include/audio/conversion/float_to_s16.h create mode 100644 include/audio/conversion/s16_to_float.h create mode 100644 include/audio/dsp_filter.h create mode 100644 include/boolean.h create mode 100644 include/clamping.h create mode 100644 include/compat/apple_compat.h create mode 100644 include/compat/fnmatch.h create mode 100644 include/compat/fopen_utf8.h create mode 100644 include/compat/getopt.h create mode 100644 include/compat/ifaddrs.h create mode 100644 include/compat/intrinsics.h create mode 100644 include/compat/msvc.h create mode 100644 include/compat/msvc/stdint.h create mode 100644 include/compat/posix_string.h create mode 100644 include/compat/strcasestr.h create mode 100644 include/compat/strl.h create mode 100644 include/compat/zconf.h create mode 100644 include/compat/zconf.h.in create mode 100644 include/compat/zlib.h create mode 100644 include/compat/zutil.h create mode 100644 include/dynamic/dylib.h create mode 100644 include/encodings/crc32.h create mode 100644 include/encodings/utf.h create mode 100644 include/encodings/win32.h create mode 100644 include/fastcpy.h create mode 100644 include/features/features_cpu.h create mode 100644 include/file/archive_file.h create mode 100644 include/file/config_file.h create mode 100644 include/file/config_file_userdata.h create mode 100644 include/file/file_path.h create mode 100644 include/file/nbio.h create mode 100644 include/filters.h create mode 100644 include/formats/image.h create mode 100644 include/formats/jsonsax.h create mode 100644 include/formats/jsonsax_full.h create mode 100644 include/formats/rbmp.h create mode 100644 include/formats/rjpeg.h create mode 100644 include/formats/rpng.h create mode 100644 include/formats/rtga.h create mode 100644 include/formats/rwav.h create mode 100644 include/formats/rxml.h create mode 100644 include/gfx/gl_capabilities.h create mode 100644 include/gfx/math/matrix_3x3.h create mode 100644 include/gfx/math/matrix_4x4.h create mode 100644 include/gfx/math/vector_2.h create mode 100644 include/gfx/math/vector_3.h create mode 100644 include/gfx/math/vector_4.h create mode 100644 include/gfx/scaler/filter.h create mode 100644 include/gfx/scaler/pixconv.h create mode 100644 include/gfx/scaler/scaler.h create mode 100644 include/gfx/scaler/scaler_int.h create mode 100644 include/gfx/video_frame.h create mode 100644 include/glsm/glsm.h create mode 100644 include/glsm/glsmsym.h create mode 100644 include/glsym/glsym.h create mode 100644 include/glsym/glsym_es2.h create mode 100644 include/glsym/glsym_es3.h create mode 100644 include/glsym/glsym_gl.h create mode 100644 include/glsym/rglgen.h create mode 100644 include/glsym/rglgen_headers.h create mode 100644 include/libchdr/bitstream.h create mode 100644 include/libchdr/cdrom.h create mode 100644 include/libchdr/chd.h create mode 100644 include/libchdr/coretypes.h create mode 100644 include/libchdr/flac.h create mode 100644 include/libchdr/huffman.h create mode 100644 include/libchdr/minmax.h create mode 100644 include/libco.h create mode 100644 include/libretro.h create mode 100644 include/libretro_d3d.h create mode 100644 include/libretro_dspfilter.h create mode 100644 include/libretro_vulkan.h create mode 100644 include/lists/dir_list.h create mode 100644 include/lists/file_list.h create mode 100644 include/lists/string_list.h create mode 100644 include/math/complex.h create mode 100644 include/math/float_minmax.h create mode 100644 include/math/fxp.h create mode 100644 include/memalign.h create mode 100644 include/memmap.h create mode 100644 include/net/net_compat.h create mode 100644 include/net/net_http.h create mode 100644 include/net/net_http_parse.h create mode 100644 include/net/net_ifinfo.h create mode 100644 include/net/net_natt.h create mode 100644 include/net/net_socket.h create mode 100644 include/net/net_socket_ssl.h create mode 100644 include/queues/fifo_queue.h create mode 100644 include/queues/message_queue.h create mode 100644 include/queues/task_queue.h create mode 100644 include/retro_assert.h create mode 100644 include/retro_common.h create mode 100644 include/retro_common_api.h create mode 100644 include/retro_dirent.h create mode 100644 include/retro_endianness.h create mode 100644 include/retro_environment.h create mode 100644 include/retro_inline.h create mode 100644 include/retro_math.h create mode 100644 include/retro_miscellaneous.h create mode 100644 include/retro_timers.h create mode 100644 include/rhash.h create mode 100644 include/rthreads/async_job.h create mode 100644 include/rthreads/rsemaphore.h create mode 100644 include/rthreads/rthreads.h create mode 100644 include/streams/chd_stream.h create mode 100644 include/streams/file_stream.h create mode 100644 include/streams/file_stream_transforms.h create mode 100644 include/streams/interface_stream.h create mode 100644 include/streams/memory_stream.h create mode 100644 include/streams/stdin_stream.h create mode 100644 include/streams/trans_stream.h create mode 100644 include/string/stdstring.h create mode 100644 include/utils/md5.h create mode 100644 include/vfs/vfs_implementation.h create mode 100644 include/vulkan/vulkan_symbol_wrapper.h create mode 100644 libco/aarch64.c create mode 100644 libco/amd64.c create mode 100644 libco/armeabi.c create mode 100644 libco/fiber.c create mode 100644 libco/libco.c create mode 100644 libco/ppc.c create mode 100644 libco/psp2.c create mode 100644 libco/scefiber.c create mode 100644 libco/sjlj.c create mode 100644 libco/ucontext.c create mode 100644 libco/x86.c create mode 100644 lists/dir_list.c create mode 100644 lists/file_list.c create mode 100644 lists/string_list.c create mode 100644 lists/vector_list.c create mode 100644 memmap/memalign.c create mode 100644 memmap/memmap.c create mode 100644 net/net_compat.c create mode 100644 net/net_http.c create mode 100644 net/net_http_parse.c create mode 100644 net/net_ifinfo.c create mode 100644 net/net_natt.c create mode 100644 net/net_socket.c create mode 100644 net/net_socket_ssl.c create mode 100644 queues/fifo_queue.c create mode 100644 queues/message_queue.c create mode 100644 queues/task_queue.c create mode 100644 rthreads/ctr_pthread.h create mode 100644 rthreads/gx_pthread.h create mode 100644 rthreads/psp_pthread.h create mode 100644 rthreads/rthreads.c create mode 100644 rthreads/xenon_sdl_threads.c create mode 100644 samples/file/nbio/Makefile create mode 100644 samples/file/nbio/nbio_test.c create mode 100644 samples/formats/png/Makefile create mode 100644 samples/formats/png/rpng_test.c create mode 100644 samples/net/Makefile create mode 100755 samples/net/http_test create mode 100644 samples/net/net_http_test.c create mode 100755 samples/net/net_ifinfo create mode 100644 samples/net/net_ifinfo_test.c create mode 100644 samples/net/udp-test.c create mode 100644 samples/utils/Makefile create mode 100644 streams/chd_stream.c create mode 100644 streams/file_stream.c create mode 100644 streams/file_stream_transforms.c create mode 100644 streams/interface_stream.c create mode 100644 streams/memory_stream.c create mode 100644 streams/stdin_stream.c create mode 100644 streams/trans_stream.c create mode 100644 streams/trans_stream_pipe.c create mode 100644 streams/trans_stream_zlib.c create mode 100644 string/stdstring.c create mode 100644 utils/crc32.c create mode 100644 utils/djb2.c create mode 100644 utils/md5.c create mode 100644 utils/sha1.c create mode 100644 utils/sha1_main.c create mode 100644 vfs/vfs_implementation.c create mode 100644 vulkan/vulkan_symbol_wrapper.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000..5761abcfdf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.o diff --git a/audio/audio_mix.c b/audio/audio_mix.c new file mode 100644 index 0000000000..15879ab248 --- /dev/null +++ b/audio/audio_mix.c @@ -0,0 +1,318 @@ +/* Copyright (C) 2010-2018 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