From 3c6a8375fd089fac69872e206d879021d9ba104f Mon Sep 17 00:00:00 2001 From: Stanislav Shwartsman Date: Thu, 22 Apr 2010 17:41:05 +0000 Subject: [PATCH] small optimization --- bochs/cpu/lazy_flags.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bochs/cpu/lazy_flags.cc b/bochs/cpu/lazy_flags.cc index 98fcffb3e..7cbbe47b3 100644 --- a/bochs/cpu/lazy_flags.cc +++ b/bochs/cpu/lazy_flags.cc @@ -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)