diff --git a/include/chameleon/struct.h b/include/chameleon/struct.h index a43e46d699092a3308f7cfb8896fddc39e8457f2..33f19584eef1dcf1272b96530aff0452caff2bc4 100644 --- a/include/chameleon/struct.h +++ b/include/chameleon/struct.h @@ -158,6 +158,20 @@ CHAM_tile_get_ptr( const CHAM_tile_t *tile ) return tile->mat; } +static inline const char * +CHAM_tile_get_typestr( const CHAM_tile_t *tile ) +{ + if ( tile->format & CHAMELEON_TILE_DESC ) { + return "Desc"; + } + + if ( tile->format & CHAMELEON_TILE_HMAT ) { + return "HMat"; + } + + return "Full"; +} + END_C_DECLS #endif /* _chameleon_struct_h_ */