functions added to the main C gateway to deflate singularities in double double and quad double precision