CERTI - Patches: patch #7881, RTI1516 enableTimeRegulation...
You are not allowed to post comments on this tracker with your current authentication level.
patch #7881: RTI1516 enableTimeRegulation endianity bug fix
Submitter: | Eugene Chemeritskiy <tyz> | ||
Submitted: | Thu 01 Nov 2012 12:42:00 PM UTC | ||
Category: | CERTI | Priority: | 5 - Normal |
Status: | Need Info | Privacy: | Public |
Assigned to: | erk | Open/Closed: | Open |
Tue 24 Sep 2013 02:26:01 PM UTC, comment #3: |
Eric NOULARD <erk>![]() ![]() |
Tue 24 Sep 2013 02:06:06 PM UTC, comment #2: Hi Eric,
|
Eugene Chemeritskiy <tyz>![]() |
Tue 24 Sep 2013 01:39:21 PM UTC, comment #1: Hi Eugene,
|
Eric NOULARD <erk>![]() ![]() |
Thu 01 Nov 2012 12:42:00 PM UTC, original submission:
There is an error while getting double lookahead value from RTI1516fedTimeInterval: internal value is encoded to BE and decoded into the host native representation. This is not correct on LE hosts. |
Eugene Chemeritskiy <tyz>![]() |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Yes I did just that (match the ducth comment)
but currently at this place the code contains reasonable things:
JvY: TODO Controleren of dit blijft werken met andere tijdsimplementaties
union ud {
double dv;
uint64_t uv;
} value;
#ifdef HOST_IS_BIG_ENDIAN
memcpy(&(value.uv), theLookahead.encode().data(), sizeof(double));
#else
value.uv = CERTI_DECODE_DOUBLE_FROM_UINT64BE(theLookahead.encode().data());
#endif
double lookAheadTime = value.dv;
req.setLookahead(lookAheadTime);