aboutsummaryrefslogtreecommitdiff
path: root/src/common/vector_math.h
Commit message (Collapse)AuthorAgeFilesLines
* [common] remove unused vector_math.h fluff (#4333)lizzie2026-09-081-712/+88
| | | | | | | | | | | | | | | | | Signed-off-by: lizzie <lizzie@eden-emu.dev> - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- We don't use half of this file for anything -- it's dead code also the NEON intrinsic replacements suck -- we are not beating GLM (plus we use registers for decomposition instead of using vec regs like everyone else does, so the "optimizations" dont matter) Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4333 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: Maufeat <sahyno1996@gmail.com>
* [vector_math]: Use NEON intrinsics in Vec4 dot operation (#177)Gamer642025-08-021-0/+24
| | | | | | | | | | | | | PabloMK7: Changes the Vec4 dot operation to use NEON intrinsics on ARM devices. This function is used every time a triangle is added to the rendered, so it can be considered hot code. The other vector operations are not used as much, so there is no gain to provide NEON operations for them. The improvements from this change are most likely minimal. Co-authored-by: PabloMK7 <hackyglitch2@gmail.com> Co-authored-by: Gamer64 <76565986+Gamer64ytb@users.noreply.github.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/177 Co-authored-by: Gamer64 <gamer64@eden-emu.dev> Co-committed-by: Gamer64 <gamer64@eden-emu.dev>
* input_common: Add property to invert an axis buttonNarr the Reg2023-05-051-1/+1
|
* yuzu: Add motion preview to controller inputNarr the Reg2023-05-051-0/+14
|
* Move to Clang Format 15Levi Behunin2023-01-291-11/+5
| | | | | | Depends on https://github.com/yuzu-emu/build-environments/pull/69 clang-15 primary run
* chore: add missing SPDX tagsAndrea Pappacoda2022-04-281-29/+3
| | | | Follow-up to 2b87305d319f0bd04da36fb96314934f37b12637
* general: Update style to clang-format-12ameerj2021-09-241-2/+2
|
* input_common/CMakeLists: Make some warnings errorsLioncash2020-10-151-9/+66
| | | | | Makes the input_common code warnings consistent with the rest of the codebase.
* common: Make use of [[nodiscard]] where applicableLioncash2020-08-151-101/+103
| | | | | | Now that clang-format makes [[nodiscard]] attributes format sensibly, we can apply them to several functions within the common library to allow the compiler to complain about any misuses of the functions.
* common/vector_math: Move Vec[x] types into the Common namespaceLioncash2019-02-261-2/+2
| | | | | These types are within the common library, so they should be using the Common namespace.
* vector_math: Use variable template version of is_signed in Vec classesLioncash2018-08-081-3/+3
| | | | Same behavior, less code
* vector_math: Remove unimplemented function prototypesLioncash2018-08-071-23/+0
|
* vector_math: Make functions constexpr where applicableLioncash2018-08-071-154/+179
|
* vector_math: Convert typedefs to type aliasesLioncash2018-08-071-3/+3
|
* vector_math: Ensure members are always initializedLioncash2018-05-011-9/+9
| | | | Ensures that values are always in a well-defined state.
* vector_math: Remove AsArray() and Write() functions from Vec[2,3,4]Lioncash2018-04-191-30/+0
| | | | These are all unused and the Write() ones should arguably not even be in the interface. There are better ways to provide this if we ever need it (like iterators).
* Fixed type conversion ambiguityHuw Pascoe2017-09-301-9/+3
|
* Disable unary operator- on Math::Vec2/Vec3/Vec4 for unsigned types.Subv2017-09-271-4/+8
| | | | | It is unlikely we will ever use this without first doing a Cast to a signed type. Fixes 9 "unary minus operator applied to unsigned type, result still unsigned" warnings on MSVC2017.3
* vector_math: remove dead template parameterwwylele2017-07-111-1/+1
|
* vector_math: remove broken SFINAE stuffwwylele2017-07-111-3/+2
| | | | this was originally added to eliminate warnings on MSVC, but it doesn't work for custom types.
* SwRasterizer: Flip the vertex quaternions before clipping (if necessary).Subv2017-07-111-1/+1
|
* pica/swrasterizer: implement procedural texturewwylele2017-05-201-0/+10
|
* vector math: add implementation of Length and Normalizewwylele2016-12-261-0/+19
|
* Common: Remove dangerous Vec[234] array constructorsYuri Kunde Schlesner2016-09-291-3/+0
| | | | | They're not currently used, and it's easy to accidentally pass a single pointer argument to them, causing an out-of-bounds read.
* Manually tweak source formatting and then re-run clang-formatYuri Kunde Schlesner2016-09-181-12/+6
|
* Sources: Run clang-format on everything.Emmanuel Gil Peyrot2016-09-181-325/+382
|
* vector_math: Add missing member in Vec4's SetZero functionLioncash2016-03-181-1/+4
|
* fix failure on gcc and clangwwylele2015-11-121-3/+3
|
* disable unary minus when the type is not signedwwylele2015-11-121-0/+4
| | | | silent warning C4146 on msvc
* Move video_core/math.h to common/vector_math.harchshift2015-05-301-0/+640
The file only contained vector manipulation code, and such widely-useable code doesn't belong in video_core.