[af_math] use std::swap