Unrolled ring implementation.