Re: [PATCH weston 01/12] shared: Add timespec_is_zero helper

2017-11-27 Thread Emil Velikov
On 27 November 2017 at 08:58, Alexandros Frantzis wrote: > On Mon, Nov 27, 2017 at 10:20:35AM +0200, Pekka Paalanen wrote: >> On Fri, 24 Nov 2017 18:36:43 + >> Emil Velikov wrote: >> >> > Hi Alexandros, >> > >> > On 16 November 2017 at 16:20, Alexandros Frantzis >> > wrote: >> > >> > > +ZUC_

Re: [PATCH weston 01/12] shared: Add timespec_is_zero helper

2017-11-27 Thread Alexandros Frantzis
On Mon, Nov 27, 2017 at 10:20:35AM +0200, Pekka Paalanen wrote: > On Fri, 24 Nov 2017 18:36:43 + > Emil Velikov wrote: > > > Hi Alexandros, > > > > On 16 November 2017 at 16:20, Alexandros Frantzis > > wrote: > > > > > +ZUC_TEST(timespec_test, timespec_is_zero) > > > +{ > > > + struc

Re: [PATCH weston 01/12] shared: Add timespec_is_zero helper

2017-11-27 Thread Pekka Paalanen
On Fri, 24 Nov 2017 18:36:43 + Emil Velikov wrote: > Hi Alexandros, > > On 16 November 2017 at 16:20, Alexandros Frantzis > wrote: > > > +ZUC_TEST(timespec_test, timespec_is_zero) > > +{ > > + struct timespec zero = { 0 }; > > + struct timespec non_zero_sec = { 1, 0 }; > > +

Re: [PATCH weston 01/12] shared: Add timespec_is_zero helper

2017-11-24 Thread Emil Velikov
Hi Alexandros, On 16 November 2017 at 16:20, Alexandros Frantzis wrote: > +ZUC_TEST(timespec_test, timespec_is_zero) > +{ > + struct timespec zero = { 0 }; > + struct timespec non_zero_sec = { 1, 0 }; > + struct timespec non_zero_nsec = { 0, 1 }; > + The standard (be that POSIX

[PATCH weston 01/12] shared: Add timespec_is_zero helper

2017-11-16 Thread Alexandros Frantzis
Add a helper function to check if a struct timespec is zero. This helper will be used in the upcoming commits to transition the Weston codebase to struct timespec. Signed-off-by: Alexandros Frantzis --- shared/timespec-util.h | 12 tests/timespec-test.c | 11 +++ 2 files ch