aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.c
Commit message (Collapse)AuthorAgeFilesLines
* Move the threads and mutex wrappers to threads.cChris Robinson2014-04-161-256/+0
|
* Fix Windows' almtx_timedlockChris Robinson2014-04-161-6/+6
|
* Implement a C11-like thread wrapper and use it in mmdevapi and pulseaudioChris Robinson2014-04-161-11/+158
|
* Use a C11-like mutex wrapper instead of CRITICAL_SECTIONsChris Robinson2014-04-161-26/+96
|
* Use a helper to detect a path slash on WindowsChris Robinson2014-04-131-2/+5
|
* Use VECTOR_INSERT to copy and append stringsChris Robinson2014-04-131-12/+8
|
* Pass in the vector insertion point as a pointerChris Robinson2014-04-131-1/+3
|
* Avoid referencing the start iterator twice for vector insertionChris Robinson2014-04-131-2/+3
|
* Add a VECTOR_INSERT method to insert a range of elements at onceChris Robinson2014-04-091-0/+20
|
* Fix the default XDG_DATA_DIRS pathsChris Robinson2014-04-071-1/+1
|
* Properly compare al_stringsChris Robinson2014-04-031-2/+24
|
* Recognize NULL as an empty vector/stringChris Robinson2014-04-031-4/+9
|
* Don't pass the vector's capacity as a parameter to vector_reserveChris Robinson2014-03-311-4/+4
|
* strlen returns size_tChris Robinson2014-03-281-1/+1
|
* Use al_string to handle mmdevapi and dsound device namesChris Robinson2014-03-281-0/+27
|
* Add an al_string type and use it for the device listsChris Robinson2014-03-281-0/+64
|
* Properly handle special folder names with extended charactersChris Robinson2014-03-281-26/+43
|
* Wrap fopen calls under WindowsChris Robinson2014-03-281-5/+36
| | | | | | | The idea is that all filenames we deal with are encoded as UTF-8, but the Windows functions that take a char string interpret it using the ANSI codepage. So instead, we convert the UTF-8 string to a wchar string, and then use the wchar functions for proper extended character filename support.
* Add some integer casts, and a range checkChris Robinson2014-03-231-2/+7
|
* Increase the vector reserve as needed when pushing in new itemsChris Robinson2014-03-211-1/+8
|
* Rename the vector's Max field to CapacityChris Robinson2014-03-211-2/+2
|
* Add a generic vector interface and use it for the active effect slotsChris Robinson2014-03-211-0/+21
|
* Return the original value from CompExchange*Chris Robinson2014-03-091-2/+2
|
* Move PATH_MAX fallback definitions to alMain.hChris Robinson2014-02-271-10/+0
|
* Move OpenDataFile to helpers.c so other sources can use itChris Robinson2014-02-271-0/+133
|
* Include sys/sysconf.h if available for sysconf()Chris Robinson2014-01-181-0/+3
|
* Rename pthread wrappers used for Windows to althreadChris Robinson2013-12-061-7/+9
|
* Use C99 inline in more placesChris Robinson2013-11-041-0/+4
|
* Use C99 inline semanticsChris Robinson2013-11-041-0/+16
|
* Move the device mutex to the backendChris Robinson2013-10-281-0/+2
|
* Separate compatibility declarationsChris Robinson2013-10-281-0/+1
|
* Move SetThreadName to threads.cChris Robinson2013-10-271-38/+0
|
* Add a method to set the running thread's nameChris Robinson2013-10-261-0/+38
|
* Add a CMake option to not define the IDs used on WindowsChris Robinson2013-10-071-0/+3
| | | | | This includes the GUIDs, IIDs, CLSID, and PropertyKeys. It is up to the user to ensure the appropriate IDs are defined when linked.
* Use explicit bit offsets when checking for SSE and SSE2Chris Robinson2013-06-061-4/+2
| | | | Clang's cpuid.h doesn't contain the bit_* macros.
* Check the right flag for tracing SSE2 supportChris Robinson2013-05-291-1/+1
|
* Use fegetenv/fesetenv to backup and restore the FPU stateChris Robinson2013-05-221-4/+4
|
* Merge the fesetround FPU handler with the assembly oneChris Robinson2013-05-221-22/+23
| | | | | | The assembly is only needed for SSE since we can't access the intrinsics without the -msse switch, which itself would cause SSE code to be generated elsewhere automtically.
* Check for SSE2 and set the denormals-are-zero bit for mixing if availableChris Robinson2013-05-221-3/+14
|
* Set the correct SSE bits for round-to-zeroChris Robinson2013-05-221-1/+1
|
* Avoid using a temp buffer for al_printChris Robinson2013-05-221-12/+5
| | | | | | | | It's now using two *printf calls, which unfortuantely means there could be a race between the two and cause the message to break up if something else tries to print to the same file. This shouldn't really be a big deal since al_print isn't used that often, and it now allows for lines of practically unlimited length.
* Explicitly check for malloc.hChris Robinson2012-11-251-1/+1
|
* malloc.h isn't standard, and is only needed for _aligned_mallocChris Robinson2012-11-251-1/+3
|
* Avoid storing the SSE state if it's not supportedChris Robinson2012-11-131-1/+4
|
* Include standard headers before conditional onesChris Robinson2012-11-041-7/+6
|
* Don't assume x86 or x64 to use IsProcessorFeaturePresentChris Robinson2012-10-081-3/+2
|
* Fix a type conversion warningChris Robinson2012-10-081-2/+3
|
* Use IsProcessorFeaturePresent to detect SSE on WindowsChris Robinson2012-10-071-0/+10
|
* Revert "Use __cpuid from intrin.h in Windows when available"Chris Robinson2012-10-071-33/+0
| | | | This reverts commit 6b870714a91c9607acc4501234a00c7c94fa2b85.
* Use __cpuid from intrin.h in Windows when availableChris Robinson2012-10-071-0/+33
|