I'm sorry, I'm not sure I'm following.
Like void copyGeneric(...) {
#ifdef FAST_TRANSFORM
 nearest code
#else 
 bilinear code
#endif

?