Skip to content
This repository has been archived by the owner on Jun 27, 2019. It is now read-only.

Commit

Permalink
sol-util: avoid dead code
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Dilly <[email protected]>
  • Loading branch information
bdilly committed Mar 3, 2016
1 parent 5e78dce commit 79e3293
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions src/shared/include/sol-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -774,9 +774,9 @@ sol_util_cpu_to_be16(uint16_t val)
{
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
return sol_uint16_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand All @@ -796,9 +796,9 @@ sol_util_cpu_to_le16(uint16_t val)
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
return sol_uint16_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand All @@ -818,9 +818,9 @@ sol_util_be16_to_cpu(uint16_t val)
{
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
return sol_uint16_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand All @@ -840,9 +840,9 @@ sol_util_le16_to_cpu(uint16_t val)
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
return sol_uint16_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand All @@ -869,9 +869,9 @@ sol_util_cpu_to_be32(uint32_t val)
{
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
return sol_uint32_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand All @@ -891,9 +891,9 @@ sol_util_cpu_to_le32(uint32_t val)
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
return sol_uint32_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand All @@ -913,9 +913,9 @@ sol_util_be32_to_cpu(uint32_t val)
{
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
return sol_uint32_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand All @@ -935,9 +935,9 @@ sol_util_le32_to_cpu(uint32_t val)
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
return sol_uint32_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand Down Expand Up @@ -967,9 +967,9 @@ sol_util_cpu_to_be64(uint64_t val)
{
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
return sol_uint64_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand All @@ -989,9 +989,9 @@ sol_util_cpu_to_le64(uint64_t val)
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
return sol_uint64_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand All @@ -1011,9 +1011,9 @@ sol_util_be64_to_cpu(uint64_t val)
{
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
return sol_uint64_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand All @@ -1033,9 +1033,9 @@ sol_util_le64_to_cpu(uint64_t val)
{
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
return sol_uint64_bytes_swap(val);
#endif

#else
return val;
#endif
}

/**
Expand Down

0 comments on commit 79e3293

Please sign in to comment.