Chris Robinson
8ab5e5dba2
Move the UHJ phase shifter to a common header
2021-03-28 06:09:11 -07:00
Chris Robinson
1d57db6836
Move the ComPtr wrapper to a common header
2021-03-08 22:47:50 -08:00
Chris Robinson
0f7ed495e1
Use a fast native type for the backup popcount
2021-03-02 22:58:36 -08:00
Chris Robinson
20057b848c
Calculate the square root after checking the limit
2021-01-29 09:56:38 -08:00
Chris Robinson
3702ee669b
Add a panning "deadzone" for spatialized sources
...
It is now the greater of 'epsilon' (1 / 2**23) or ref_distance/1024.
2021-01-28 08:36:49 -08:00
Chris Robinson
ac5d40e40a
Move al::deque to a common header
2021-01-25 09:24:10 -08:00
Chris Robinson
3142fb30ea
Remove some unnecessary function attributes
...
The alloc_size was wrong anyway since the function parameter takes the number
of objects to be allocated and the attribute declares which is the number of
bytes. The assume_aligned is unnecessary since the function is inlined and
al_malloc/al_calloc already have appropriate attributes for the compiler to
see.
2021-01-23 03:27:18 -08:00
Chris Robinson
f576a35363
Don't bother checking for std::aligned_alloc
2021-01-22 08:53:44 -08:00
Chris Robinson
b3dc99a467
Fix __cplusplus value check
2021-01-22 06:00:36 -08:00
Chris Robinson
cff3693387
Use if constexpr when possible
2021-01-22 05:50:27 -08:00
Chris Robinson
da59ad5105
Make PopCount and CountTrailingZeros more standard-like
2021-01-22 04:58:42 -08:00
Chris Robinson
5ff5fd8ecc
Use a standard bitset for bitfield flags
2021-01-22 00:00:10 -08:00
Chris Robinson
5729e1004d
Make the endian test more C++-like
2021-01-21 23:21:18 -08:00
Chris Robinson
b99adb623d
Remove the invalid noexcept specification
2021-01-08 19:23:17 -08:00
Chris Robinson
1f24f5caa1
Ensure the endian test is constexpr
2021-01-06 18:04:04 -08:00
Chris Robinson
1f51de9983
Make optional trivially destructible if the stored type is
2021-01-02 14:24:53 -08:00
Chris Robinson
d6495b35df
Fix comment typo
2021-01-01 15:35:46 -08:00
Chris Robinson
1327aca9d7
Don't use templates unnecessarily
2021-01-01 15:35:14 -08:00
Chris Robinson
4c0f77c13e
Remove some unnecessary constructors
2020-12-27 06:43:59 -08:00
Chris Robinson
7833cfa8de
Make FlexArray trivially destructible when possible
2020-12-27 04:29:54 -08:00
Chris Robinson
eedc42890f
Move alexcpt to core
2020-12-24 22:49:55 -08:00
David CARLIER
8c4c14ea73
fast_roundf implementations in asm for ARM64. ( #511 )
2020-12-24 22:48:57 -08:00
Chris Robinson
7d2e21334c
Move the AL error enum out of base_exception
2020-12-17 16:46:21 -08:00
Chris Robinson
f38919eecc
Avoid using a hidden unnamed template parameter
2020-12-15 23:47:47 -08:00
Chris Robinson
1679ab937e
Reorder definitions to keep them near each other
2020-12-05 06:40:06 -08:00
Chris Robinson
16c7d1816d
Remove some unnecessary inlines and includes
2020-12-05 06:30:13 -08:00
Chris Robinson
7485e402c1
Avoid a REQUIRES macro for SFINAE
2020-12-05 05:57:18 -08:00
Chris Robinson
8a352d25f9
Move the ringbuffer to common
2020-12-05 03:28:19 -08:00
Chris Robinson
630a3b8cbd
Move lerp/cubic to alnumeric.h
2020-12-04 11:15:50 -08:00
Chris Robinson
645d354ffa
Add a close method to the win32 ifstream
2020-11-16 14:51:50 -08:00
Chris Robinson
e64c52ce8c
Use doubles to calculate the listener matrix translation
...
To help stablize sources near the listener, when away from origin. Also clean
up some related methods and move them to more appropriate places.
2020-11-13 23:33:40 -08:00
Chris Robinson
db6d6d68b4
Avoid bitshifts for loop counting
2020-11-08 07:46:10 -08:00
Chris Robinson
6de861a75c
Remove a constexpr that needs C++17
2020-10-23 20:00:09 -07:00
Chris Robinson
966c4498d4
Don't use a template parameter as a variable
...
And try to silence an MSVC warning about a constant overflow.
2020-10-23 19:53:07 -07:00
Chris Robinson
556321f18d
Some cleanup in alspan.h
2020-10-23 19:03:37 -07:00
Chris Robinson
7cb1cc8ab5
Add some constexpr
2020-10-23 18:40:54 -07:00
Chris Robinson
a3ea46f773
Add some missing constexpr attributes
2020-10-20 11:40:27 -07:00
Chris Robinson
303ca3af72
Use inline functions for popcnt and ctz instead of macros
2020-10-13 01:21:44 -07:00
Chris Robinson
d86d882d8b
Fix an invalid unicode character in a comment
2020-09-14 02:52:16 -07:00
Chris Robinson
0974b6b47c
Use inline wrappers to clarify forward/inverse FFTs
2020-09-13 04:18:40 -07:00
Chris Robinson
9a883f5046
Partly simplify FFT bit-reversal
...
This can almost certainly be improved further, as less than half of the indices
really need their reversed bit-pattern calculated and elements swapped (any
symetrical bit pattern would just swap with itself, and indices whose reversed
bit-pattern has already been traversed is already swapped).
It may also prove beneficial to provide the base-2 log of the fft buffer size
(number of bits to represent the indices), as that could help make the reversal
more efficient with a known bit/loop count.
2020-09-13 03:33:52 -07:00
Chris Robinson
fe329c2af2
Avoid class templates for the POPCNT64/CTZ64 macros
2020-09-01 15:55:48 -07:00
Chris Robinson
1f486f820e
Use a separate structure for buffer storage
2020-08-28 00:09:46 -07:00
Chris Robinson
01f76f2b67
Allow intrusive_ptr::reset to take a new pointer
2020-08-24 14:09:26 -07:00
Chris Robinson
34b29a48a4
Ensure enough space is allocated for structs with a FlexArray
2020-08-15 23:53:43 -07:00
Chris Robinson
23259b48dd
Avoid a zero-length array for the FlexArray definition
...
Newer GCCs are warning about FlexArray being used at the end of another struct.
Though not the most ideal to always allocate space for at least 1 element,
actual 0-sized uses are rare and for smaller element types.
2020-08-15 23:22:10 -07:00
Chris Robinson
8e7199cbb6
Avoid a cmake check for determining the size of long
2020-08-13 14:04:29 -07:00
Chris Robinson
fd52c828a9
Improve handling main() with UTF-8 args on Windows
2020-08-12 17:40:00 -07:00
Chris Robinson
c549797af0
Make osme things constexpr
2020-08-10 15:11:52 -07:00
Chris Robinson
02f8419663
Fix DIAGNOSTIC_POP for GCC and Clang
2020-08-06 23:20:20 -07:00