use Inline CPP => <<'__EOI__'; // Assumes the arg had UTF8=0 IV is_private(const char* packed_ip) { // XXX Alignment issues const U16& hi = *(const U16*)packed_ip; // The irrelevant branch will be optimised away. if (*(const U16*)("\x12\x34") == 0x1234) { // Little endian if ( hi == 0xC0A8 || (hi & 0xFFF0) == 0xAC10 || (hi & 0xFF00) == 0x0A00 ) return 1; } else { // Little endian if ( hi == 0xA8C0 || (hi & 0xF0FF) == 0x10AC || (hi & 0x00FF) == 0x000A ) return 1; } return 0; } __EOI__