xtensa-esp32-elf/lib/gcc/xtensa-esp32-elf/5.2.0/plugin/include/hwint.h
/* Sign extend SRC starting from PREC.  */
Sign extend SRC starting from PREC.
Sign extend SRC starting from PREC .
static inline HOST_WIDE_INT
sext_hwi (HOST_WIDE_INT src, unsigned int prec)
{
  if (prec == HOST_BITS_PER_WIDE_INT)
    return src;
  else
    {
      gcc_checking_assert (prec < HOST_BITS_PER_WIDE_INT);
      int shift = HOST_BITS_PER_WIDE_INT - prec;
      return (src << shift) >> shift;
    }
}
static inline HOST_WIDE_INT sext_hwi ( HOST_WIDE_INT src , unsigned int prec ) { if ( prec == HOST_BITS_PER_WIDE_INT ) return src ; else { gcc_checking_assert ( prec < HOST_BITS_PER_WIDE_INT ) ; int shift = HOST_BITS_PER_WIDE_INT - prec ; return ( src << shift ) >> shift ; } }
Sign extend SRC starting from PREC.
Sign extend SRC starting from PREC .