Commit Graph

15 Commits

Author SHA1 Message Date
Mateusz Pusz
9a374a5646 refactor: isq::time swapped with isq::duration 2026-01-09 09:22:37 +01:00
Roth Michaels
507b2dbd0d fix: enable runtime usage of inverse function by using compile-time unit extraction
Replace runtime unit access (q.unit) with compile-time type extraction
(get_unit(R)) in the inverse function implementation. This prevents the
function from becoming an immediate function when consteval unit operators
are used, allowing inverse to work with runtime variables.

Key changes:
- math.h: Use get_unit(R) instead of q.unit in both code paths
- test: Add comprehensive runtime inverse tests

This surgical fix preserves maximum compile-time optimization while
enabling DSP applications that need runtime inverse calculations.

Fixes compilation error with Clang:
"call to immediate function 'inverse' is not a constant expression"

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-11 09:07:08 +00:00
Mateusz Pusz
35798a0f39 refactor: ostream.h header file made deprecated 2025-06-20 10:40:10 +02:00
Mateusz Pusz
5a0e350be7 feat: lerp and midpoint for points added 2025-02-13 14:26:51 +01:00
Mateusz Pusz
88439828a5 feat: std::numeric_limits support added
Resolves #408
2025-02-05 18:04:43 +01:00
Mateusz Pusz
c6344c26ee style: missing empty line at the end of the file added 2024-11-12 11:31:26 +01:00
Mateusz Pusz
78204c7e5f test: runtime unit tests refactored to have a bigger granularity (less top level tests) 2024-11-12 11:27:52 +01:00
Yves Delley
3e502fb795 increase tolerance for certain math tests to two epsilon 2024-09-16 20:34:12 +02:00
Mateusz Pusz
b870b85c25 feat: import std; support added
Resolves #595
2024-07-16 17:36:00 +02:00
Mateusz Pusz
8ea346be1c refactor: 💥 header files with the entire system definitions moved up in the directory tree 2024-04-25 16:34:11 +02:00
Mateusz Pusz
c066104af7 refactor: 💥 framework.h introduced + IWYU 2024-04-24 21:09:29 +02:00
Nebojsa Cvetkovic
069f2bf11a feat: IEEE floating-point division remainder 2024-04-18 12:04:12 +01:00
Nebojsa Cvetkovic
64c351906d feat: fmod floating-point division remainder 2024-01-22 10:48:15 +00:00
Nebojsa Cvetkovic
057d659c1f feat: atan2 2-argument arctangent 2024-01-20 19:37:00 +00:00
Mateusz Pusz
0eaf6e2e56 refactor: modules support redesigned 2024-01-06 08:51:01 +01:00