FreeBSD/sys/contrib/x86emu/x86emu.c
static uint32_t 
and_long(struct x86emu *emu, uint32_t d, uint32_t s)
{
	uint32_t res;	/* all operands in native machine order */

	res = d & s;

	/* set the flags  */
	CLEAR_FLAG(F_OF);
	CLEAR_FLAG(F_CF);
	CLEAR_FLAG(F_AF);
	CONDITIONAL_SET_FLAG(res & 0x80000000, F_SF);
	CONDITIONAL_SET_FLAG(res == 0, F_ZF);
	CONDITIONAL_SET_FLAG(PARITY(res & 0xff), F_PF);
	return res;
}
/*
 * REMARKS:
 * Implements the AND instruction and side effects.
 */
Implements the AND instruction and side effects.
Implements the AND instruction and side effects .
static uint32_t 
and_long(struct x86emu *emu, uint32_t d, uint32_t s)
{
	uint32_t res;	
	res = d & s;
	CLEAR_FLAG(F_OF);
	CLEAR_FLAG(F_CF);
	CLEAR_FLAG(F_AF);
	CONDITIONAL_SET_FLAG(res & 0x80000000, F_SF);
	CONDITIONAL_SET_FLAG(res == 0, F_ZF);
	CONDITIONAL_SET_FLAG(PARITY(res & 0xff), F_PF);
	return res;
}
static uint32_t and_long ( struct x86emu * emu , uint32_t d , uint32_t s ) { uint32_t res ; res = d & s ; CLEAR_FLAG ( F_OF ) ; CLEAR_FLAG ( F_CF ) ; CLEAR_FLAG ( F_AF ) ; CONDITIONAL_SET_FLAG ( res & 0x80000000 , F_SF ) ; CONDITIONAL_SET_FLAG ( res == 0 , F_ZF ) ; CONDITIONAL_SET_FLAG ( PARITY ( res & 0xff ) , F_PF ) ; return res ; }
REMARKS:
 Implements the AND instruction and side effects.
REMARKS : Implements the AND instruction and side effects .
/* all operands in native machine order */ /* set the flags  */