float arLookup[2] = { -1.0f, 1.0f }; for(int i = 0; i < 16777216; i = i << 1) { std::cout << arLookup[i & 0x1] << ", "; }