/* C combines the power of assembler with the portability of assembler. */
/************************************************************************/
-#include "DataDesc/datadesc_private.h"
+#include "gras/DataDesc/datadesc_private.h"
-GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(convert,datadesc);
+GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(ddt_convert,datadesc,
+ "Inter-architecture convertions");
/***
*** Table of all known architectures:
*/
gras_assert(type->category_code == e_gras_datadesc_type_cat_scalar);
-
-
+ gras_assert(r_arch != GRAS_THISARCH);
+
r_size = type->size[r_arch];
l_size = type->size[GRAS_THISARCH];
DEBUG4("r_size=%d l_size=%d, src=%p dst=%p",
r_size,l_size,src,dst);
- if (r_arch == GRAS_THISARCH) {
- DEBUG0("No conversion needed");
- return no_error;
- }
-
- r_size = type->size[r_arch];
- l_size = type->size[GRAS_THISARCH];
-
DEBUG2("remote=%c local=%c", gras_arches[r_arch].endian?'B':'l',
gras_arches[GRAS_THISARCH].endian?'B':'l');