Re: [PATCH weston 2/7] timespec: Add timespec_add_msec helper

2017-02-14 Thread Daniel Stone
Hi, On 14 February 2017 at 14:24, Pekka Paalanen wrote: > On Tue, 14 Feb 2017 13:18:02 + > Daniel Stone wrote: >> +/* Add a millisecond value to a timespec >> + * >> + * \param r[out] result: a + b >> + * \param a[in] base operand as timespec >> + * \param b[in] operand in milliseconds >> +

Re: [PATCH weston 2/7] timespec: Add timespec_add_msec helper

2017-02-14 Thread Pekka Paalanen
On Tue, 14 Feb 2017 13:18:02 + Daniel Stone wrote: > Add a (timespec) = (timespec) + (msec) helper, to save intermediate > conversions in its users. > > Signed-off-by: Daniel Stone > --- > shared/timespec-util.h | 21 + > tests/timespec-test.c | 11 +++ > 2 fil

[PATCH weston 2/7] timespec: Add timespec_add_msec helper

2017-02-14 Thread Daniel Stone
Add a (timespec) = (timespec) + (msec) helper, to save intermediate conversions in its users. Signed-off-by: Daniel Stone --- shared/timespec-util.h | 21 + tests/timespec-test.c | 11 +++ 2 files changed, 32 insertions(+) diff --git a/shared/timespec-util.h b/share