*\r
* SYNOPSIS\r
*/\r
-int osm_mcast_tbl_realloc(IN osm_mcast_tbl_t * p_tbl, IN uintn_t mlid_offset);\r
+int osm_mcast_tbl_realloc(IN osm_mcast_tbl_t * p_tbl, IN unsigned mlid_offset);\r
/*\r
* PARAMETERS\r
*\r
#define ST_INCLUDED\r
\r
#include <stdlib.h>\r
+#include <inttypes.h>\r
\r
#ifdef __cplusplus\r
# define BEGIN_C_DECLS extern "C" {\r
#define pthread_mutex_lock cl_mutex_acquire\r
#define pthread_mutex_unlock cl_mutex_release\r
#define pthread_mutex_init(a,b) cl_mutex_init((a))\r
-#define pthread_mutex_destroy(a) cl_mutex_destroy(a)\r
+#define pthread_mutex_destroy cl_mutex_destroy\r
\r
#define pthread_cond_init(a,b)\r
-#define pthread_cond_signal(a) cl_event_signal(a)\r
+#define pthread_cond_signal cl_event_signal\r
#define pthread_cond_destroy(a)\r
\r
\r
void osm_mcast_tbl_set(IN osm_mcast_tbl_t * p_tbl, IN uint16_t mlid_ho,\r
IN uint8_t port)\r
{\r
- uintn_t mlid_offset;\r
- uintn_t mask_offset;\r
- uintn_t bit_mask;\r
+ unsigned mlid_offset, mask_offset, bit_mask;\r
int16_t block_num;\r
\r
CL_ASSERT(p_tbl && p_tbl->p_mask_tbl);\r
\r
/**********************************************************************\r
**********************************************************************/\r
-int osm_mcast_tbl_realloc(IN osm_mcast_tbl_t * p_tbl, IN uintn_t mlid_offset)\r
+int osm_mcast_tbl_realloc(IN osm_mcast_tbl_t * p_tbl, IN unsigned mlid_offset)\r
{\r
size_t mft_depth, size;\r
uint16_t (*p_mask_tbl)[][IB_MCAST_POSITION_MAX];\r
boolean_t osm_mcast_tbl_is_port(IN const osm_mcast_tbl_t * p_tbl,\r
IN uint16_t mlid_ho, IN uint8_t port_num)\r
{\r
- uintn_t mlid_offset;\r
- uintn_t mask_offset;\r
- uintn_t bit_mask;\r
+ unsigned mlid_offset, mask_offset, bit_mask;\r
\r
CL_ASSERT(p_tbl);\r
\r
boolean_t osm_mcast_tbl_is_any_port(IN const osm_mcast_tbl_t * p_tbl,\r
IN uint16_t mlid_ho)\r
{\r
- uintn_t mlid_offset;\r
+ unsigned mlid_offset;\r
uint8_t position;\r
uint16_t result = 0;\r
\r
void osm_mcast_tbl_clear_mlid(IN osm_mcast_tbl_t * p_tbl, IN uint16_t mlid_ho)\r
{\r
uint8_t i;\r
- uintn_t mlid_offset;\r
+ unsigned mlid_offset;\r
\r
CL_ASSERT(p_tbl);\r
CL_ASSERT(mlid_ho >= IB_LID_MCAST_START_HO);\r
uint16_t dest_lid_ho;\r
uint32_t path_num = 0;\r
uint8_t preference;\r
- uintn_t src_offset;\r
- uintn_t dest_offset;\r
+ unsigned src_offset, dest_offset;\r
\r
OSM_LOG_ENTER(sa->p_log);\r
\r
uint16_t dest_lid_max_ho;\r
uint16_t src_lid_ho;\r
uint16_t dest_lid_ho;\r
- uintn_t iterations;\r
+ unsigned iterations;\r
int src_lids, dest_lids;\r
\r
OSM_LOG_ENTER(sa->p_log);\r
uint16_t dest_lid_ho;\r
uint32_t path_num;\r
uint8_t preference;\r
- uintn_t iterations;\r
- uintn_t src_offset;\r
- uintn_t dest_offset;\r
+ unsigned iterations, src_offset, dest_offset;\r
\r
OSM_LOG_ENTER(sa->p_log);\r
\r
if (comp_mask & IB_PR_COMPMASK_NUMBPATH)\r
iterations = ib_path_rec_num_path(p_pr);\r
else\r
- iterations = (uintn_t) (-1);\r
+ iterations = (unsigned) (-1);\r
else\r
iterations = 1;\r
\r
\r
/**********************************************************************\r
**********************************************************************/\r
-static intn_t compar_mgids(const void *m1, const void *m2)\r
+static int compar_mgids(const void *m1, const void *m2)\r
{\r
return memcmp(m1, m2, sizeof(ib_gid_t));\r
}\r