Phillip Stephens
8410394d4b
Add toRGBA and toRGB5A3 to CColor
2022-05-13 23:46:19 -07:00
Phillip Stephens
eec855018a
Add countLeadingZeros
2020-09-19 15:43:35 -07:00
Lioncash
81f9b4a4ee
General: Mark functions as nodiscard where applicable
...
Given this aims to be a general purpose math library for use in various
other libraries applications for axiodl, we can annotate functions that
return by value or reference with [[nodiscard]] where it's very obvious
that not making use of the return value is a bug.
This allows the compiler to diagnose and emit warnings for these API
misuses at compile-time, preventing silent bugs from occurring.
Any cases where not using the return value is desirable may still be
casted to void in order to silence warnings.
2020-03-04 03:07:54 -05:00
Phillip Stephens
82c2a2d85b
Minor fixes
2020-03-03 16:47:59 -08:00
Jack Andersen
b854e76dc9
constexpr refactor
2019-02-23 21:15:32 -10:00
Jack Andersen
e172225845
New code style refactor
2018-12-07 19:23:50 -10:00
Jack Andersen
e8dfecbb6e
SIMD refactor
2018-12-07 15:16:50 -10:00
Jack Andersen
20603da60d
Convert to pragma once
2018-10-06 17:39:40 -10:00
Jack Andersen
17a501f339
Remove unneeded standard math functions
2018-06-02 20:10:58 -10:00
Jack Andersen
26ea606a09
Add `double` version of close_enough
2018-02-09 20:25:31 -10:00
Jack Andersen
10d389ffda
Huge compile performance refactor
2017-12-28 22:06:22 -10:00
Jack Andersen
bf25b17ea9
Fix architecture detection macros for Windows
2017-12-26 18:09:19 -10:00
Jack Andersen
439da78fa6
Support for detecting AVX and AVX2 ISA
2017-12-26 14:47:31 -10:00
Jack Andersen
b359ff96d0
Remove SSELegacy.cpp and add validateCPU()
2017-12-11 16:03:39 -10:00
Phillip Stephens
b94b2cdd02
Fix `CVector3f::canBeNormalized`
2017-11-18 01:17:40 -08:00
Jack Andersen
141b803c66
constexpr for clamp, min/max, and degree-radian converters
2017-10-09 17:49:54 -10:00
Jack Andersen
bf13f1f49c
Add M_SQRT1_2F constant
2017-07-26 19:15:22 -10:00
Phillip Stephens
e7a72d02b1
Add CAABox::booleanIntersection
2017-01-20 21:57:34 -08:00
Jack Andersen
a136d77458
Use __builtin_popcountll for systems that support it
2016-12-09 16:33:18 -10:00
Phillip Stephens
fb91979596
Add CMatrix constructor for CQuaternion, close_enough helper, and CTransform constness fix
2016-08-31 21:08:46 -07:00
Jack Andersen
b15e66a710
Bulk-run of clang-format
2016-07-08 08:42:42 -10:00
Jack Andersen
e284c2de31
Order-of-operations optimization with degrees/radians conversion
2016-04-14 17:00:51 -10:00
Jack Andersen
286d098ecb
Proper SFINAE usage on PopCount
2016-04-09 13:18:46 -10:00
Jack Andersen
a76d43d5df
Humungous refactor
2016-03-04 13:03:26 -10:00