"-1ULL" is still a poor choice for a constant. Why not use "~0ULL" if you want an all ones bit pattern of type unsigned long long int?
On 13 August 2014 12:13, Maxim Uvarov <[email protected]> wrote: > On 08/13/2014 10:38 AM, Alexandru Badicioiu wrote: > >> >> +/** Invalid session handle */ >> +#define ODP_CRYPTO_SESSION_INVALID (-1ULL) >> >> Is there a reason for this value? These are the current invalid values: >> #define ODP_QUEUE_INVALID 0 >> #define ODP_PKTIO_INVALID 0 >> #define ODP_BUFFER_POOL_INVALID (0xffffffff) >> #define ODP_BUFFER_INVALID (0xffffffff) >> #define ODP_TIMER_INVALID 0 >> #define ODP_TIMER_TMO_INVALID 0 >> > If different hardware return different errors, then there is reason. > > Maxim. > > _______________________________________________ > lng-odp mailing list > [email protected] > http://lists.linaro.org/mailman/listinfo/lng-odp >
_______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
