apic_id_is_present: fix undefined behavior

This patch addresses some feedback sent by Laszlo[1] on the
non-contiguous APIC ID patches I have sent recently.

 - (1 << 31) is undefined for 32-bit signed ints
 - Use !! on the returned value, so the function return value
   can be an int without a unsigned -> signed conversion

[] http://article.gmane.org/gmane.comp.emulators.qemu/162163

Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
1 file changed
tree: 9812fe1a29592418975483395c42cec46c5b5eeb
  1. .gitignore
  2. COPYING
  3. COPYING.LESSER
  4. Makefile
  5. README
  6. TODO
  7. src/
  8. tools/
  9. vgasrc/