Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Check the container type given to DEF_NEWDEL and DEF_FAM_NEWDEL | Chris Robinson | 2022-05-16 | 1 | -3/+7 |
| | | | | | | | There's apparently no way to get the containing class/struct type from a static member function, and operator new/delete are implicitly static member functions so the macros to define them need to be told the type to allocate for. This ensures the type specified matches the containing type. | ||||
* | Move assume_aligned to opthelpers.h and define force_inline | Chris Robinson | 2022-03-30 | 1 | -36/+0 |
| | |||||
* | Avoid a variable to subscript an array in offsetof | Chris Robinson | 2022-03-26 | 1 | -2/+8 |
| | |||||
* | Try to improve assume_aligned for other compilers | Chris Robinson | 2022-03-25 | 1 | -2/+35 |
| | |||||
* | Simplify a couple offsetof statements | Chris Robinson | 2022-03-24 | 1 | -10/+4 |
| | |||||
* | Remove an unnecessary noexcept | Chris Robinson | 2021-10-23 | 1 | -7/+4 |
| | |||||
* | Add more noexcept | Chris Robinson | 2021-10-14 | 1 | -8/+8 |
| | |||||
* | Properly noexcept the destroy methods | Chris Robinson | 2021-10-14 | 1 | -5/+6 |
| | |||||
* | Make a construct_at method amd use it | Chris Robinson | 2021-10-08 | 1 | -1/+6 |
| | |||||
* | Add the gnu::malloc attribute to al_malloc and al_calloc | Chris Robinson | 2021-10-07 | 1 | -2/+4 |
| | | | | | | This helps the compiler know the returned pointer won't alias another pointer or existing object, since it's a fresh allocation, and is unlikely to return nullptr. | ||||
* | Remove some unnecessary function attributes | Chris Robinson | 2021-01-23 | 1 | -4/+4 |
| | | | | | | | | 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. | ||||
* | Make FlexArray trivially destructible when possible | Chris Robinson | 2020-12-27 | 1 | -42/+89 |
| | |||||
* | Ensure enough space is allocated for structs with a FlexArray | Chris Robinson | 2020-08-15 | 1 | -1/+4 |
| | |||||
* | Avoid a zero-length array for the FlexArray definition | Chris Robinson | 2020-08-15 | 1 | -5/+4 |
| | | | | | | 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. | ||||
* | Use an enum for FamCount | Chris Robinson | 2020-05-19 | 1 | -3/+3 |
| | |||||
* | Apply some alloc and alignment attributes | Chris Robinson | 2020-04-10 | 1 | -16/+4 |
| | |||||
* | Make a default/empty constructor noexcept | Chris Robinson | 2020-04-09 | 1 | -1/+1 |
| | |||||
* | Remove some unused functions | Chris Robinson | 2020-03-23 | 1 | -64/+3 |
| | |||||
* | Add a macro to disable class-specific new/delete | Chris Robinson | 2020-03-23 | 1 | -0/+6 |
| | |||||
* | Properly define the new[] and delete[] operators | Chris Robinson | 2020-03-22 | 1 | -3/+10 |
| | |||||
* | Avoid some pre-C++14 workarounds | Chris Robinson | 2020-03-22 | 1 | -8/+0 |
| | |||||
* | Fix some 'ambiguous' calls for newer MSVC | Chris Robinson | 2020-01-06 | 1 | -6/+6 |
| | |||||
* | Ensure a pointer is provided for a templated iterator type | Chris Robinson | 2020-01-05 | 1 | -2/+2 |
| | |||||
* | Put the pragma defines in a separate header | Chris Robinson | 2019-10-07 | 1 | -19/+4 |
| | |||||
* | Add some allocator fields GCC 6.3 seems to want | Chris Robinson | 2019-10-01 | 1 | -0/+6 |
| | |||||
* | Work around MSVC's lack of standard _Pragma support | Chris Robinson | 2019-09-18 | 1 | -7/+7 |
| | |||||
* | Silence a couple specific warning instances | Chris Robinson | 2019-09-18 | 1 | -0/+27 |
| | |||||
* | Don't use [[nodiscard]] in C++11 | Chris Robinson | 2019-09-12 | 1 | -5/+5 |
| | | | | To silence some warnings in older compilers, and fix an error with newer MSVC. | ||||
* | Fix allocator comparison operators | Chris Robinson | 2019-09-11 | 1 | -4/+4 |
| | |||||
* | Simplify flexible array member usage | Chris Robinson | 2019-09-11 | 1 | -2/+18 |
| | |||||
* | Don't inherit for the allocator | Chris Robinson | 2019-09-11 | 1 | -22/+18 |
| | |||||
* | Add a Create method to FlexArray for "raw" arrays | Chris Robinson | 2019-08-03 | 1 | -0/+5 |
| | |||||
* | Cleanup common sources' includes | Chris Robinson | 2019-07-29 | 1 | -4/+7 |
| | |||||
* | Add C++17-like uninitialized_move methods | Chris Robinson | 2019-07-01 | 1 | -0/+43 |
| | |||||
* | Add an empty() method to FlexArray | Chris Robinson | 2019-06-29 | 1 | -2/+2 |
| | |||||
* | Fix ambiguous calls to destroy_at | geneotech | 2019-06-21 | 1 | -2/+2 |
| | |||||
* | Use a FlexArray for the context's voices | Chris Robinson | 2019-06-09 | 1 | -1/+1 |
| | |||||
* | Add and use proper types for FlexArray | Chris Robinson | 2019-06-07 | 1 | -20/+43 |
| | |||||
* | Remove a couple unused functions | Chris Robinson | 2019-06-06 | 1 | -8/+0 |
| | |||||
* | Remove the DEF_ALIGN macro | Chris Robinson | 2019-06-06 | 1 | -2/+0 |
| | |||||
* | Add methods to construct and destruct objects in-place | Chris Robinson | 2019-06-05 | 1 | -5/+73 |
| | |||||
* | Improve alignment handling for the alignment allocator | Chris Robinson | 2019-06-03 | 1 | -2/+2 |
| | |||||
* | Add front and back methods to FlexArray | Chris Robinson | 2019-01-17 | 1 | -0/+6 |
| | |||||
* | Add placement operator delete | Chris Robinson | 2019-01-11 | 1 | -3/+7 |
| | |||||
* | Add a missing include | Chris Robinson | 2019-01-11 | 1 | -0/+1 |
| | |||||
* | Add a flexible array template container | Chris Robinson | 2019-01-11 | 1 | -0/+42 |
| | |||||
* | Add and use a make_unique function | Chris Robinson | 2019-01-01 | 1 | -0/+7 |
| | |||||
* | Use static_cast instead of reinterpret_cast where possible | Chris Robinson | 2018-12-28 | 1 | -1/+1 |
| | |||||
* | Add an assume_aligned helper | Chris Robinson | 2018-12-20 | 1 | -0/+15 |
| | |||||
* | Add and use a macro to define placement-new-only allocators | Chris Robinson | 2018-11-22 | 1 | -0/+4 |
| | | | | | | This is for structs that utilize over-allocation, either flexible array members, or which store optional additional objects in the same allocation block. |