|
3-phase PV router
|
Unity-based unit tests for assembly multiplication functions. More...

Go to the source code of this file.
Functions | |
| void | loop () |
| void | setUp (void) |
| void | setup () |
| void | tearDown (void) |
| void | test_assembly_vs_standard (void) |
| Compare assembly results with standard multiplication. | |
| void | test_edge_cases (void) |
| Test edge cases and potential overflow scenarios. | |
| void | test_mult16x8_q8_basic (void) |
| Test basic functionality of mult16x8_q8. | |
| void | test_mult16x8_q8_rounding (void) |
| Test rounding behavior of mult16x8_q8. | |
| void | test_multS16x16_to32_basic (void) |
| Test basic functionality of multS16x16_to32. | |
| void | test_multU16x16_to32_basic (void) |
| Test basic functionality of multU16x16_to32 (unsigned) | |
| void | test_multU24x16_to32_hi8_basic (void) |
| Test multU24x16_to32_hi8: (a x b) >> 8, a on 24 bits (energy bucket, #120) | |
| void | test_performance_isr_simulation (void) |
| ISR-like performance test simulating real-world usage. | |
| void | test_performance_mult16x8_q8 (void) |
| Performance comparison for Q8 fractional multiplication. | |
| void | test_performance_multS16x16_to32 (void) |
| Performance comparison between assembly and standard multiplication. | |
| void | test_performance_multU16x16_to32 (void) |
| Performance comparison for unsigned multiplication (multU16x16_to32) | |
| void | test_q8_conversion_helpers (void) |
| Test Q8 format conversion helpers. | |
Variables | |
| volatile uint8_t | g_optimizer_defeat = 0 |
| uint8_t | i = 0 |
| uint8_t | max_blinks = 1 |
Unity-based unit tests for assembly multiplication functions.
This file contains comprehensive unit tests for the assembly-optimized multiplication functions using the Unity testing framework.
Based on:
Definition in file test_main.cpp.
| void loop | ( | ) |
| void setUp | ( | void | ) |
Definition at line 27 of file test_main.cpp.
| void setup | ( | ) |
Definition at line 876 of file test_main.cpp.
| void tearDown | ( | void | ) |
Definition at line 32 of file test_main.cpp.
| void test_assembly_vs_standard | ( | void | ) |
Compare assembly results with standard multiplication.
Definition at line 397 of file test_main.cpp.


| void test_edge_cases | ( | void | ) |
Test edge cases and potential overflow scenarios.
Definition at line 285 of file test_main.cpp.


| void test_mult16x8_q8_basic | ( | void | ) |
Test basic functionality of mult16x8_q8.
Definition at line 193 of file test_main.cpp.


| void test_mult16x8_q8_rounding | ( | void | ) |
Test rounding behavior of mult16x8_q8.
Definition at line 261 of file test_main.cpp.


| void test_multS16x16_to32_basic | ( | void | ) |
Test basic functionality of multS16x16_to32.
Definition at line 40 of file test_main.cpp.


| void test_multU16x16_to32_basic | ( | void | ) |
Test basic functionality of multU16x16_to32 (unsigned)
Definition at line 87 of file test_main.cpp.


| void test_multU24x16_to32_hi8_basic | ( | void | ) |
Test multU24x16_to32_hi8: (a x b) >> 8, a on 24 bits (energy bucket, #120)
Definition at line 139 of file test_main.cpp.


| void test_performance_isr_simulation | ( | void | ) |
ISR-like performance test simulating real-world usage.
Definition at line 754 of file test_main.cpp.


| void test_performance_mult16x8_q8 | ( | void | ) |
Performance comparison for Q8 fractional multiplication.
Definition at line 650 of file test_main.cpp.


| void test_performance_multS16x16_to32 | ( | void | ) |
Performance comparison between assembly and standard multiplication.
Definition at line 448 of file test_main.cpp.


| void test_performance_multU16x16_to32 | ( | void | ) |
Performance comparison for unsigned multiplication (multU16x16_to32)
Definition at line 550 of file test_main.cpp.


| void test_q8_conversion_helpers | ( | void | ) |
Test Q8 format conversion helpers.
Definition at line 241 of file test_main.cpp.


| volatile uint8_t g_optimizer_defeat = 0 |
Definition at line 25 of file test_main.cpp.
| uint8_t i = 0 |
Definition at line 882 of file test_main.cpp.
| uint8_t max_blinks = 1 |
Definition at line 883 of file test_main.cpp.