Go to the documentation of this file.
29 #ifndef __BASE_CONDCODE_HH__
30 #define __BASE_CONDCODE_HH__
84 return ((~(dest >>
shift) & 1) +
85 ((src1 >>
shift) & 1) +
86 ((src2 >>
shift) & 1)) & 0x2;
98 return ((src1 ^ ~src2) & (src1 ^ dest)) & (1
ULL <<
shift);
123 dest ^= (dest >> 32);
124 dest ^= (dest >> 16);
154 #endif // __BASE_CONDCODE_HH__
static bool findCarry(int width, uint64_t dest, uint64_t src1, uint64_t src2)
Calculate the carry flag from an addition.
static bool findOverflow(int width, uint64_t dest, uint64_t src1, uint64_t src2)
Calculate the overflow flag from an addition.
static bool findZero(int width, uint64_t dest)
Calculate the zero flag.
static bool findParity(int width, uint64_t dest)
Calculate the parity of a value.
static bool findNegative(int width, uint64_t dest)
Calculate the negative flag.
#define ULL(N)
uint64_t constant
T bits(T val, int first, int last)
Extract the bitfield from position 'first' to 'last' (inclusive) from 'val' and right justify it.
Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17