move existing inline functions from cavs.c to cavs.h