Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
f6fe86c6
Commit
f6fe86c6
authored
Jun 21, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix macros to avoid warnings
parent
2802418c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
openair3/UTILS/conversions.h
openair3/UTILS/conversions.h
+9
-9
No files found.
openair3/UTILS/conversions.h
View file @
f6fe86c6
...
...
@@ -70,8 +70,8 @@
/* Convert an integer on 16 bits to the given bUFFER */
#define INT16_TO_BUFFER(x, buf) \
do { \
(buf)[0] = (x
) >> 8;
\
(buf)[1] = (x)
;
\
(buf)[0] = (x
>> 8) & 0xff;
\
(buf)[1] = (x)
& 0xff;
\
} while(0)
/* Convert an array of char containing vALUE to x */
...
...
@@ -84,9 +84,9 @@ do { \
/* Convert an integer on 24 bits to the given bUFFER */
#define INT24_TO_BUFFER(x, buf) \
do { \
(buf)[0] = (x
) >> 16;
\
(buf)[1] = (x
) >> 8;
\
(buf)[2] = (x)
;
\
(buf)[0] = (x
>> 16) & 0xff;
\
(buf)[1] = (x
>> 8) & 0xff;
\
(buf)[2] = (x)
& 0xff;
\
} while(0)
/* Convert an array of char containing vALUE to x */
...
...
@@ -101,10 +101,10 @@ do { \
/* Convert an integer on 32 bits to the given bUFFER */
#define INT32_TO_BUFFER(x, buf) \
do { \
(buf)[0] = (x
) >> 24;
\
(buf)[1] = (x
) >> 16;
\
(buf)[2] = (x
) >> 8;
\
(buf)[3] = (x)
;
\
(buf)[0] = (x
>> 24) & 0xff;
\
(buf)[1] = (x
>> 16) & 0xff;
\
(buf)[2] = (x
>> 8) & 0xff;
\
(buf)[3] = (x)
& 0xff;
\
} while(0)
/* Convert an array of char containing vALUE to x */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment