Re: [PATCH weston 1/8] shared: Add timespec_normalize helper

2017-12-12 Thread Alexandros Frantzis
On Tue, Dec 12, 2017 at 12:55:27PM +0200, Pekka Paalanen wrote: > On Tue, 12 Dec 2017 12:36:39 +0200 > Alexandros Frantzis wrote: > > > On Tue, Dec 12, 2017 at 11:50:49AM +0200, Pekka Paalanen wrote: > > > On Mon, 4 Dec 2017 15:34:01 +0200 > > > Alexandros Frantzis wrote: > > > > > > > Add a

Re: [PATCH weston 1/8] shared: Add timespec_normalize helper

2017-12-12 Thread Pekka Paalanen
On Tue, 12 Dec 2017 12:36:39 +0200 Alexandros Frantzis wrote: > On Tue, Dec 12, 2017 at 11:50:49AM +0200, Pekka Paalanen wrote: > > On Mon, 4 Dec 2017 15:34:01 +0200 > > Alexandros Frantzis wrote: > > > > > Add a helper function to normalize struct timespec values so that the > > > nanosecon

Re: [PATCH weston 1/8] shared: Add timespec_normalize helper

2017-12-12 Thread Alexandros Frantzis
On Tue, Dec 12, 2017 at 11:50:49AM +0200, Pekka Paalanen wrote: > On Mon, 4 Dec 2017 15:34:01 +0200 > Alexandros Frantzis wrote: > > > Add a helper function to normalize struct timespec values so that the > > nanoseconds part is less than 1 second and has the same sign as the > > seconds part (i

Re: [PATCH weston 1/8] shared: Add timespec_normalize helper

2017-12-12 Thread Pekka Paalanen
On Mon, 4 Dec 2017 15:34:01 +0200 Alexandros Frantzis wrote: > Add a helper function to normalize struct timespec values so that the > nanoseconds part is less than 1 second and has the same sign as the > seconds part (if the seconds part is not 0). > > Normalization is required to ensure we ca

[PATCH weston 1/8] shared: Add timespec_normalize helper

2017-12-04 Thread Alexandros Frantzis
Add a helper function to normalize struct timespec values so that the nanoseconds part is less than 1 second and has the same sign as the seconds part (if the seconds part is not 0). Normalization is required to ensure we can safely convert timespec values to wayland protocol data, i.e, to tv_sec_