small optimization

This commit is contained in:
Stanislav Shwartsman 2010-04-22 17:41:05 +00:00
parent 25b315bb8b
commit 3c6a8375fd

View File

@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////
// $Id: lazy_flags.cc,v 1.53 2009-12-04 16:53:12 sshwarts Exp $
// $Id: lazy_flags.cc,v 1.54 2010-04-22 17:41:05 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001-2009 The Bochs Project
@ -212,7 +212,7 @@ bx_bool BX_CPU_C::get_AFLazy(void)
}
#define GET_ADD_OVERFLOW(op1, op2, result, mask) \
(((~((op1) ^ (op2)) & ((op2) ^ (result))) & (mask)) != 0)
(((((op1) ^ (result)) & ((op2) ^ (result))) & (mask)) != 0)
#define GET_SUB_OVERFLOW(op1, op2, result, mask) \
(((((op1) ^ (op2)) & ((op1) ^ (result))) & (mask)) != 0)