MATH_QSortStackSize

Syntax

#include <nitro/math/qsort.h>

static inline u32 MATH_QSortStackSize(u32 num);

Arguments

num Number of elements in the array to sort.

Return Values

Returns the size of the work buffer required for sorting with the MATH_QSort function.

Description

This function obtains the maximum work buffer size needed for sorting with the MATH_QSort function. If no work buffer is passed as an argument to the MATH_QSort function, a work area of this size will be allocated from the stack.

See Also

MATH_QSort

Revision History

2005/04/12 Initial version.


CONFIDENTIAL