type_table = NULL;
}
+/* Returns true if specified type is an "all signed" or "all unsigned"
+ type. */
+bool
+is_all_integer_type (const struct aop_type *type)
+{
+ return ((type->kind == ATK_SIGNED_INT || type->kind == ATK_UNSIGNED_INT)
+ && type->pointer_levels == 0 && type->size <= 0);
+}
+
+/* Returns true if specified type is an "all fp" type. */
+bool
+is_all_fp_type (const struct aop_type *type)
+{
+ return ((type->kind == ATK_FP) && type->pointer_levels == 0
+ && type->size <= 0);
+}
+
/**
* \defgroup type InterAspect Types
* \{
* true if and only if the specified type matches a subset of types
* that aop_t_all_pointer() matches.
* \param type The type to check.
- * \param Non-zero if the #aop_type object matches a pointer type,
+ * \return Non-zero if the #aop_type object matches a pointer type,
* zero otherwise.
*/
int
return dv->type;
}
-/* Close Doxygen defgroup block. */
/**
- * \}
+ * Check if an #aop_type object matches one of the types that
+ * aop_t_all_signed() matches.
+ * \param type The type to check.
+ * \return Non-zero if the #aop_type object is standard-sized signed
+ * integer type.
*/
-
-/* Returns true if specified type is an "all signed" or "all unsigned"
- type. */
-bool
-is_all_integer_type (const struct aop_type *type)
-{
- return ((type->kind == ATK_SIGNED_INT || type->kind == ATK_UNSIGNED_INT)
- && type->pointer_levels == 0 && type->size <= 0);
-}
-
-/* Returns true if the specified type is a "signed integer" which is
- NOT 128 bits integer */
int
aop_is_all_signed_subtype (const struct aop_type *type)
{
&& type->pointer_levels == 0 && type->size <= 8);
}
-/* Returns true if the specified type is a "unsigned integer" which is
- NOT 128 bits integer */
+/**
+ * Check if an #aop_type object matches one of the types that
+ * aop_t_all_unsigned() matches.
+ * \param type The type to check.
+ * \return Non-zero if the #aop_type object is standard-sized unsigned
+ * integer type.
+ */
int
aop_is_all_unsigned_subtype (const struct aop_type *type)
{
* if it were matched and captured using the aop_t_all_signed() type.
*
* Only use this function on dynvals whose type passes
- * aop_is_all_signed_subtype(). Casting a non-signed sub type with
- * this function will raise a fatal compiler error.
+ * aop_is_all_signed_subtype(). Casting any other type with this
+ * function will raise a fatal compiler error.
* \param dv The #aop_dynval to cast.
*/
void
* type.
*
* Only use this function on dynvals whose type passes
- * aop_is_all_unsigned_subtype(). Casting a non-unsigned sub type
- * with this function will raise a fatal compiler error.
+ * aop_is_all_unsigned_subtype(). Casting any other type with this
+ * function will raise a fatal compiler error.
* \param dv The #aop_dynval to cast.
*/
void
dv->type = aop_t_all_unsigned();
}
-/* Returns true if specified type is an "all fp" type. */
-bool
-is_all_fp_type (const struct aop_type *type)
-{
- return ((type->kind == ATK_FP) && type->pointer_levels == 0
- && type->size <= 0);
-}
-
-/* Returns true if the specified type is a "float" which is NOT 128
- bits float */
+/**
+ * Check if an #aop_type object matches one of the types that
+ * aop_t_all_fp() matches.
+ * \param type The type to check.
+ * \return Non-zero if the #aop_type object is standard-sized signed
+ * floating point type.
+ */
int
aop_is_all_fp_subtype (const struct aop_type *type)
{
dv->type = aop_t_all_fp();
}
+/* Close Doxygen defgroup block. */
+/**
+ * \}
+ */
+
/* Given a type node, get that type node's identifier. */
static tree
get_type_identifier (tree gcc_type)