Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
c94cd359
Commit
c94cd359
authored
Apr 24, 2018
by
Jean-Claude BAU
Committed by
Adam Wujek
Nov 20, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code size optimization of state-initializing() (72 bytes)
parent
1c20f1da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
state-initializing.c
proto-standard/state-initializing.c
+1
-6
No files found.
proto-standard/state-initializing.c
View file @
c94cd359
...
...
@@ -84,14 +84,9 @@ int pp_initializing(struct pp_instance *ppi, void *buf, int len)
mac_port1
[
i
]
=
((
unsigned
char
*
)
ppi
->
ch
[
PP_NP_GEN
].
addr
)[
i
];
}
DSDEF
(
ppi
)
->
clockIdentity
.
id
[
0
]
=
mac_port1
[
0
];
DSDEF
(
ppi
)
->
clockIdentity
.
id
[
1
]
=
mac_port1
[
1
];
DSDEF
(
ppi
)
->
clockIdentity
.
id
[
2
]
=
mac_port1
[
2
];
memcpy
(
DSDEF
(
ppi
)
->
clockIdentity
.
id
,
mac_port1
,
PP_CLOCK_IDENTITY_LENGTH
);
DSDEF
(
ppi
)
->
clockIdentity
.
id
[
3
]
=
0xff
;
DSDEF
(
ppi
)
->
clockIdentity
.
id
[
4
]
=
0xfe
;
DSDEF
(
ppi
)
->
clockIdentity
.
id
[
5
]
=
mac_port1
[
3
];
DSDEF
(
ppi
)
->
clockIdentity
.
id
[
6
]
=
mac_port1
[
4
];
DSDEF
(
ppi
)
->
clockIdentity
.
id
[
7
]
=
mac_port1
[
5
];
init_parent_ds
(
ppi
);
}
...
...
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