d = sizeof(int) * (n1 + 256 * n2);