1. An apparatus comprising: an array of complementary resistive memory bit-cells; write drivers coupled to the array; logic to determine a number of ones or zeros in an input word before that word is provided to the write drivers; and a first register to store a polarity of the input word.