Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit 3a9e6d83 authored by adelmann's avatar adelmann :reminder_ribbon:
Browse files

Merge branch 'int8' into 'master'

Add support for hdf5 int8 types (int8, uint8)

See merge request !7
parents 40644d0c 9d4c8844
Branches master
No related tags found
1 merge request!7Add support for hdf5 int8 types (int8, uint8)
......@@ -135,6 +135,12 @@ h5priv_map_enum_to_normalized_type (
case H5_STRING_T:
ret_value = H5_STRING;
break;
case H5_INT8_T:
ret_value = H5_INT8;
break;
case H5_UINT8_T:
ret_value = H5_UINT8;
break;
case H5_INT16_T:
ret_value = H5_INT16;
break;
......@@ -203,6 +209,12 @@ h5priv_normalize_type (
} else {
ret_value = H5_UINT16;
}
} else if (tsize==1) {
if (tsign == H5T_SGN_2) {
ret_value = H5_INT8;
} else {
ret_value = H5_UINT8;
}
}
break;
case H5T_FLOAT:
......@@ -263,6 +275,13 @@ h5priv_map_hdf5_type_to_enum (
} else {
ret_value = H5_UINT16_T;
}
} else if (tsize==1) {
if (tsign == H5T_SGN_2) {
ret_value = H5_INT8_T;
}
else {
ret_value = H5_UINT8_T;
}
} else {
ret_value = H5_STRING_T;
}
......
......@@ -13,6 +13,8 @@
#include <hdf5.h>
#include "h5core/h5_types.h"
#define H5_INT8 H5T_NATIVE_INT8
#define H5_UINT8 H5T_NATIVE_UINT8
#define H5_INT16 H5T_NATIVE_INT16
#define H5_UINT16 H5T_NATIVE_UINT16
#define H5_INT32 H5T_NATIVE_INT32
......
......@@ -30,6 +30,8 @@ typedef int MPI_Datatype;
typedef enum {
H5_STRING_T,
H5_INT8_T,
H5_UINT8_T,
H5_INT16_T,
H5_UINT16_T,
H5_INT32_T,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment