primitives for Spartan 3A