linux porting, dem_interpolate