added conditional definition for n_gcd based on architecture