A generic partial quicksort macro for C99.