FreeBSD/contrib/gcc/c-common.c
/* Return an unsigned type the same as TYPE in other respects.  */
Return an unsigned type the same as TYPE in other respects.
Return an unsigned type the same as TYPE in other respects .
tree
c_common_unsigned_type (tree type)
{
  tree type1 = TYPE_MAIN_VARIANT (type);
  if (type1 == signed_char_type_node || type1 == char_type_node)
    return unsigned_char_type_node;
  if (type1 == integer_type_node)
    return unsigned_type_node;
  if (type1 == short_integer_type_node)
    return short_unsigned_type_node;
  if (type1 == long_integer_type_node)
    return long_unsigned_type_node;
  if (type1 == long_long_integer_type_node)
    return long_long_unsigned_type_node;
  if (type1 == widest_integer_literal_type_node)
    return widest_unsigned_literal_type_node;
#if HOST_BITS_PER_WIDE_INT >= 64
  if (type1 == intTI_type_node)
    return unsigned_intTI_type_node;
#endif
  if (type1 == intDI_type_node)
    return unsigned_intDI_type_node;
  if (type1 == intSI_type_node)
    return unsigned_intSI_type_node;
  if (type1 == intHI_type_node)
    return unsigned_intHI_type_node;
  if (type1 == intQI_type_node)
    return unsigned_intQI_type_node;
  return c_common_signed_or_unsigned_type (1, type);
}
tree c_common_unsigned_type ( tree type ) { tree type1 = TYPE_MAIN_VARIANT ( type ) ; if ( type1 == signed_char_type_node || type1 == char_type_node ) return unsigned_char_type_node ; if ( type1 == integer_type_node ) return unsigned_type_node ; if ( type1 == short_integer_type_node ) return short_unsigned_type_node ; if ( type1 == long_integer_type_node ) return long_unsigned_type_node ; if ( type1 == long_long_integer_type_node ) return long_long_unsigned_type_node ; if ( type1 == widest_integer_literal_type_node ) return widest_unsigned_literal_type_node ; #if HOST_BITS_PER_WIDE_INT >= 64 if ( type1 == intTI_type_node ) return unsigned_intTI_type_node ; #endif if ( type1 == intDI_type_node ) return unsigned_intDI_type_node ; if ( type1 == intSI_type_node ) return unsigned_intSI_type_node ; if ( type1 == intHI_type_node ) return unsigned_intHI_type_node ; if ( type1 == intQI_type_node ) return unsigned_intQI_type_node ; return c_common_signed_or_unsigned_type ( 1 , type ) ; }
Return an unsigned type the same as TYPE in other respects.
Return an unsigned type the same as TYPE in other respects .