On Thu, Mar 11, 2021 at 01:02:35PM +0100, Erez Geva wrote:
> @@ -455,4 +456,26 @@ void parray_extend(void ***a, ...);
> */
> int rate_limited(int interval, time_t *last);
>
> +/**
> + * Swap host order to network order of 64 bits unsigned integer.
> + *
> + * @param val value to swap.
> + * @return swaped value.
> + */
> +static inline uint64_t htonll(uint64_t val)
> +{
> + return htobe64(val);
> +}
The second patch in this series doesn't use htonll or ntohll, and so
you can drop this patch.
Thanks,
Richard
> +
> +/**
> + * Swap network order to host order of 64 bits unsigned integer.
> + *
> + * @param val value to swap.
> + * @return swaped value.
> + */
> +static inline uint64_t ntohll(uint64_t val)
> +{
> + return be64toh(val);
> +}
> +
> #endif
> --
> 2.20.1
_______________________________________________
Linuxptp-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel