Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added round trip time contraint to the SDP program, this parameter
[simgrid.git] / src / gras / DataDesc / ddt_convert.c
index 142be9d..fd20823 100644 (file)
@@ -15,7 +15,7 @@
 
 #include "gras/DataDesc/datadesc_private.h"
 
-XBT_LOG_NEW_DEFAULT_SUBCATEGORY(ddt_convert,datadesc,
+XBT_LOG_NEW_DEFAULT_SUBCATEGORY(gras_ddt_convert,gras_ddt,
                                 "Inter-architecture convertions");
 
 /***
@@ -36,32 +36,39 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(ddt_convert,datadesc,
  ***/
 
 const gras_arch_desc_t gras_arches[gras_arch_count] = {
-  {"little32",   0, {1,2,4,4,8,   4,4,   4,8}, /* win32 */
-                    {1,2,4,4,8,   4,4,   4,8}},
+                               
+  {"little32_1",       0, {1,2,4,4,8,   4,4,   4,8},   /* little endian, 1 byte alignement (win32) */
+                       {1,1,1,1,1,   1,1,   1,1}},                                            
+  
+  {"little32_2",       0, {1,2,4,4,8,   4,4,   4,8},   /* little endian, 2 bytes alignements (win32) */
+                       {1,2,2,2,2,   2,2,   2,2}},           
    
-  {"little32_4", 0, {1,2,4,4,8,   4,4,   4,8}, /* linux x86 */
-                    {1,2,4,4,4,   4,4,   4,4}},
+  {"little32_4",    0, {1,2,4,4,8,   4,4,   4,8},   /* little endian, 4 bytes alignements (win32 and linux x86) */
+                       {1,2,4,4,4,   4,4,   4,4}},
+  
+  {"little32_8",    0, {1,2,4,4,8,   4,4,   4,8},      /* little endian, 8 bytes alignement (win32) */
+                       {1,2,4,4,8,   4,4,   4,8}},
 
-  {"little64",   0, {1,2,4,8,8,   8,8,   4,8}, /* alpha, ia64 */
-                    {1,2,4,8,8,   8,8,   4,8}},
+  {"little64",      0, {1,2,4,8,8,   8,8,   4,8}, /* alpha, ia64 */
+                       {1,2,4,8,8,   8,8,   4,8}},
 
-  {"big32",      1, {1,2,4,4,8,   4,4,   4,8}, 
-                    {1,2,4,4,8,   4,4,   4,8}},
+  {"big32_8",       1, {1,2,4,4,8,   4,4,   4,8}, 
+                       {1,2,4,4,8,   4,4,   4,8}},
 
-  {"big32_8_4",  1, {1,2,4,4,8,   4,4,   4,8}, /* AIX */
-                    {1,2,4,4,8,   4,4,   4,4}},
+  {"big32_8_4",     1, {1,2,4,4,8,   4,4,   4,8}, /* AIX */
+                       {1,2,4,4,8,   4,4,   4,4}},
 
-  {"big32_4",    1, {1,2,4,4,8,   4,4,   4,8}, /* G5 */
-                    {1,2,4,4,4,   4,4,   4,4}},
+  {"big32_4",       1, {1,2,4,4,8,   4,4,   4,8}, /* G5 */
+                       {1,2,4,4,4,   4,4,   4,4}},
    
-  {"big32_2",    1, {1,2,4,4,8,   4,4,   4,8}, /* ARM */
-                    {1,2,2,2,2,   2,2,   2,2}},
+  {"big32_2",       1, {1,2,4,4,8,   4,4,   4,8}, /* ARM */
+                       {1,2,2,2,2,   2,2,   2,2}},
 
-  {"big64",      1, {1,2,4,8,8,   8,8,   4,8}, /* sparc */
-                    {1,2,4,8,8,   8,8,   4,8}},
+  {"big64",         1, {1,2,4,8,8,   8,8,   4,8}, /* sparc */
+                       {1,2,4,8,8,   8,8,   4,8}},
    
-  {"big64_8_4",  1, {1,2,4,8,8,   8,8,   4,8}, /* aix with -maix64 */
-                    {1,2,4,8,8,   8,8,   4,4}}
+  {"big64_8_4",     1, {1,2,4,8,8,   8,8,   4,8}, /* aix with -maix64 */
+                       {1,2,4,8,8,   8,8,   4,4}}
 };
 
 const char *gras_datadesc_arch_name(int code) {
@@ -86,7 +93,7 @@ gras_dd_reverse_bytes(void *to,
  * The data to be converted is stored in @src, and is to be stored in @dst.
  * Both pointers may be the same location if no resizing is needed.
  */
-xbt_error_t
+void
 gras_dd_convert_elm(gras_datadesc_type_t type, int count,
                    int r_arch, 
                    void *src, void *dst) {
@@ -221,7 +228,6 @@ gras_dd_convert_elm(gras_datadesc_type_t type, int count,
     }
   }
 
-  return no_error;
 }
 
 static void