Lib/Source/Functions.cpp
/**
 * This is the same as negation.
 *
 * Used as an alternative for `-1*a`, because vc4 does 24-bit multiplication only.
 */
This is the same as negation.
Used as an alternative for `-1*a`, because vc4 does 24-bit multiplication only.
This is the same as negation . Used as an alternative for ` - 1 * a ` because vc4 does 24 - bit multiplication only .
IntExpr two_complement(IntExpr a) {
  return create_function_snippet([a] {
    Int tmp = a;
    tmp = (tmp ^ 0xffffffff) + 1;  
    Return(tmp);
  });
}
IntExpr two_complement ( IntExpr a ) { return create_function_snippet ( [ a ] { Int tmp = a ; tmp = ( tmp ^ 0xffffffff ) + 1 ; Return ( tmp ) ; } ) ; }
This is the same as negation.
This is the same as negation .
// take the 1's complement