Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
754f4fd3
Commit
754f4fd3
authored
Feb 17, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/wrc.h: don't use abs from the library
Saves 36B Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
d1c3c002
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wrc.h
include/wrc.h
+3
-3
No files found.
include/wrc.h
View file @
754f4fd3
...
...
@@ -30,6 +30,9 @@
_a < _b ? _a : _b; })
#endif
/* Don't use abs from the library */
#define abs(x) ((x >= 0) ? x : -x)
#ifndef htons
# define htons(x) (x)
#endif
...
...
@@ -92,9 +95,6 @@ void shell_init(void);
/* Default width (in 8ns/16ns units) of the pulses on the PPS output */
#define PPS_WIDTH (10 * 1000 * 1000 / NS_PER_CLOCK)
/* 10ms */
/* This is in the library, somewhere */
extern
int
abs
(
int
val
);
/* refresh period for _gui_ and _stat_ commands */
extern
int
wrc_ui_refperiod
;
...
...
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