Remove custom math functions by using the the ones in vector_math_operations instead.

Signed-off-by: John McCutchan <john@johnmccutchan.com>