smoothing spl-stack.c