| 384 | } |
| 385 | |
| 386 | static void lerp_batch(float curve[64], float a, float b, float scale, const uint8_t *indices, const uint8_t *amounts) { |
| 387 | float step = (a - b) * scale; |
| 388 | for (size_t idx = 0; indices[idx] != 0xFF; idx++) { |
| 389 | curve[indices[idx]] = b + step * amounts[idx]; |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | static void lerp_between(float *curve, size_t length) { |
| 394 | float a = *curve; |
no outgoing calls
no test coverage detected