Merge "Fix misc-macro-parentheses warnings in context-hub.h."
am: 81a5640cf9
Change-Id: I8c8c0f5e7fb079baab8dfdda5a5eb6f3256d6843
This commit is contained in:
commit
9d2f461264
1 changed files with 6 additions and 6 deletions
|
@ -78,17 +78,17 @@ __BEGIN_DECLS
|
||||||
#define NANOAPP_VENDOR_ALL_APPS 0x0000000000FFFFFFULL
|
#define NANOAPP_VENDOR_ALL_APPS 0x0000000000FFFFFFULL
|
||||||
|
|
||||||
#define NANOAPP_VENDOR(name) \
|
#define NANOAPP_VENDOR(name) \
|
||||||
(((uint64_t)name[0] << 56) | \
|
(((uint64_t)(name)[0] << 56) | \
|
||||||
((uint64_t)name[1] << 48) | \
|
((uint64_t)(name)[1] << 48) | \
|
||||||
((uint64_t)name[2] << 40) | \
|
((uint64_t)(name)[2] << 40) | \
|
||||||
((uint64_t)name[3] << 32) | \
|
((uint64_t)(name)[3] << 32) | \
|
||||||
((uint64_t)name[4] << 24))
|
((uint64_t)(name)[4] << 24))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* generates the NANOAPP ID from vendor id and app seq# id
|
* generates the NANOAPP ID from vendor id and app seq# id
|
||||||
*/
|
*/
|
||||||
#define NANO_APP_ID(vendor, seq_id) \
|
#define NANO_APP_ID(vendor, seq_id) \
|
||||||
(((uint64_t)vendor & NANOAPP_VENDORS_ALL) | ((uint64_t)seq_id & NANOAPP_VENDOR_ALL_APPS))
|
(((uint64_t)(vendor) & NANOAPP_VENDORS_ALL) | ((uint64_t)(seq_id) & NANOAPP_VENDOR_ALL_APPS))
|
||||||
|
|
||||||
struct hub_app_name_t {
|
struct hub_app_name_t {
|
||||||
uint64_t id;
|
uint64_t id;
|
||||||
|
|
Loading…
Reference in a new issue