OSDN Git Service

AArch64: Calculate private_handle_t's numInts
authorAshok Bhat <ashok.bhat@arm.com>
Thu, 6 Feb 2014 14:11:08 +0000 (14:11 +0000)
committerDavid Butcher <david.butcher@arm.com>
Fri, 7 Feb 2014 17:52:08 +0000 (17:52 +0000)
commitd2be74aa57aef69853e3451839dab43cfad39a02
treea05beae8b41df8a68898a3c04202e8ddd9b3aeb5
parent037335ebe826289445fd2ba14e95ff41d57ad928
AArch64: Calculate private_handle_t's numInts

A constant sNumInts with a value of 6 was being assigned to the numInts
attribute in the private_handle_t constructor, and was also used in the
validate method. That constant value is appropriate for 32-bit systems
but is not appropriate for a 64-bit system where uintptr_t used for
base attribute will be 64-bit.

sNumInts is now changed to a static inline function that calculates
numInts.

Change-Id: I482ddb5915c9ff55fb2e2a87887a0ec2dc2299ed
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
modules/gralloc/gralloc_priv.h