set_precomp_mode function

Set the precompute mode.