#ifdef D_R4_INTERNAL

# define module_d21 module_d21_r4
# define module_d_g module_d_g_r4

# define _xf _xf_r4
# define _yf _yf_r4
# define _zf _zf_r4
# define _xb _xb_r4
# define _yb _yb_r4
# define _zb _zb_r4
# define _t _t_r4
# define _bwd _bwd_r4
# define _fwd _fwd_r4
# define _xyzt _xyzt_r4
# define _projection _projection_r4
# define _projection_block _projection_block_r4

# define timing_bin_d_r4 timing_bin_d
# define timing_bin_d_dag_r4 timing_bin_d_dag
# define timing_bin_d_xf_r4 timing_bin_d_xf
# define timing_bin_d_yf_r4 timing_bin_d_yf
# define timing_bin_d_zf_r4 timing_bin_d_zf
# define timing_bin_d_dag_xf_r4 timing_bin_d_dag_xf
# define timing_bin_d_dag_yf_r4 timing_bin_d_dag_yf
# define timing_bin_d_dag_zf_r4 timing_bin_d_dag_zf
# define timing_bin_d_t_r4 timing_bin_d_t
# define timing_bin_d_dag_t_r4 timing_bin_d_dag_t
# define timing_bin_d_xb_r4 timing_bin_d_xb
# define timing_bin_d_yb_r4 timing_bin_d_yb
# define timing_bin_d_zb_r4 timing_bin_d_zb
# define timing_bin_d_dag_xb_r4 timing_bin_d_dag_xb
# define timing_bin_d_dag_yb_r4 timing_bin_d_dag_yb
# define timing_bin_d_dag_zb_r4 timing_bin_d_dag_zb

#else

# define d d_r4
# define d_dag d_dag_r4

# endif
