Added const to c_sf_e and c_sf_d. Added __restrict__ to lig