diff options
Diffstat (limited to 'src/common/container.h')
-rw-r--r-- | src/common/container.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/container.h b/src/common/container.h index 26ac85120d..c3756c83a6 100644 --- a/src/common/container.h +++ b/src/common/container.h @@ -689,5 +689,11 @@ median_int32(int32_t *array, int n_elements) return find_nth_int32(array, n_elements, (n_elements-1)/2); } +static INLINE uint32_t +third_quartile_uint32(uint32_t *array, int n_elements) +{ + return find_nth_uint32(array, n_elements, (n_elements*3)/4); +} + #endif |