Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
89390a83
Commit
89390a83
authored
7 years ago
by
Kaspar Schleiser
Browse files
Options
Downloads
Patches
Plain Diff
core: byteorder.h: rename HTON* -> hton*, NTOH* -> ntoh*
parent
70ed63ed
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/include/byteorder.h
+12
-12
12 additions, 12 deletions
core/include/byteorder.h
with
12 additions
and
12 deletions
core/include/byteorder.h
+
12
−
12
View file @
89390a83
...
...
@@ -230,7 +230,7 @@ static inline uint64_t byteorder_swapll(uint64_t v);
* @param[in] v The integer to convert.
* @returns Converted integer.
*/
static
inline
uint16_t
HTONS
(
uint16_t
v
);
static
inline
uint16_t
htons
(
uint16_t
v
);
/**
* @brief Convert from host byte order to network byte order, 32 bit.
...
...
@@ -238,7 +238,7 @@ static inline uint16_t HTONS(uint16_t v);
* @param[in] v The integer to convert.
* @returns Converted integer.
*/
static
inline
uint32_t
HTONL
(
uint32_t
v
);
static
inline
uint32_t
htonl
(
uint32_t
v
);
/**
* @brief Convert from host byte order to network byte order, 64 bit.
...
...
@@ -246,7 +246,7 @@ static inline uint32_t HTONL(uint32_t v);
* @param[in] v The integer to convert.
* @returns Converted integer.
*/
static
inline
uint64_t
HTONLL
(
uint64_t
v
);
static
inline
uint64_t
htonll
(
uint64_t
v
);
/**
* @brief Convert from network byte order to host byte order, 16 bit.
...
...
@@ -254,7 +254,7 @@ static inline uint64_t HTONLL(uint64_t v);
* @param[in] v The integer to convert.
* @returns Converted integer.
*/
static
inline
uint16_t
NTOHS
(
uint16_t
v
);
static
inline
uint16_t
ntohs
(
uint16_t
v
);
/**
* @brief Convert from network byte order to host byte order, 32 bit.
...
...
@@ -262,7 +262,7 @@ static inline uint16_t NTOHS(uint16_t v);
* @param[in] v The integer to convert.
* @returns Converted integer.
*/
static
inline
uint32_t
NTOHL
(
uint32_t
v
);
static
inline
uint32_t
ntohl
(
uint32_t
v
);
/**
* @brief Convert from network byte order to host byte order, 64 bit.
...
...
@@ -270,7 +270,7 @@ static inline uint32_t NTOHL(uint32_t v);
* @param[in] v The integer to convert.
* @returns Converted integer.
*/
static
inline
uint64_t
NTOHLL
(
uint64_t
v
);
static
inline
uint64_t
ntohll
(
uint64_t
v
);
/* **************************** IMPLEMENTATION ***************************** */
...
...
@@ -385,34 +385,34 @@ static inline uint64_t byteorder_ntohll(network_uint64_t v)
return
_byteorder_swap
(
v
.
u64
,
ll
);
}
static
inline
uint16_t
HTONS
(
uint16_t
v
)
static
inline
uint16_t
htons
(
uint16_t
v
)
{
return
byteorder_htons
(
v
).
u16
;
}
static
inline
uint32_t
HTONL
(
uint32_t
v
)
static
inline
uint32_t
htonl
(
uint32_t
v
)
{
return
byteorder_htonl
(
v
).
u32
;
}
static
inline
uint64_t
HTONLL
(
uint64_t
v
)
static
inline
uint64_t
htonll
(
uint64_t
v
)
{
return
byteorder_htonll
(
v
).
u64
;
}
static
inline
uint16_t
NTOHS
(
uint16_t
v
)
static
inline
uint16_t
ntohs
(
uint16_t
v
)
{
network_uint16_t
input
=
{
v
};
return
byteorder_ntohs
(
input
);
}
static
inline
uint32_t
NTOHL
(
uint32_t
v
)
static
inline
uint32_t
ntohl
(
uint32_t
v
)
{
network_uint32_t
input
=
{
v
};
return
byteorder_ntohl
(
input
);
}
static
inline
uint64_t
NTOHLL
(
uint64_t
v
)
static
inline
uint64_t
ntohll
(
uint64_t
v
)
{
network_uint64_t
input
=
{
v
};
return
byteorder_ntohll
(
input
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment