parameter set up functions
| 407 | // **** **** |
| 408 | // *********************************************************************** |
| 409 | static const char *MClock_current_params(cache_t *cache, |
| 410 | MClock_params_t *params) { |
| 411 | static __thread char params_str[128]; |
| 412 | int n = snprintf(params_str, 128, "hand-pos=%.2lf", (params->hand_pos[0])); |
| 413 | |
| 414 | for (int i = 1; i < params->n_hands; i++) { |
| 415 | n += snprintf(params_str + n, 128 - n, ":%.2lf", (params->hand_pos[i])); |
| 416 | } |
| 417 | |
| 418 | snprintf(cache->cache_name + n, 128 - n, "\n"); |
| 419 | |
| 420 | return params_str; |
| 421 | } |
| 422 | |
| 423 | static void MClock_parse_params(cache_t *cache, |
| 424 | const char *cache_specific_params) { |
no outgoing calls
no test coverage detected