forked from Imagelibrary/rtems
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
* score/include/rtems/score/heap.h: Use uintptr_t for _H_uptr_t. * score/inline/rtems/score/address.inl: Remove RTEMS_CPU_HAS_16_BIT_ADDRESSES. Use uintptr_t for void* to address cast.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* score/include/rtems/score/heap.h: Use uintptr_t for _H_uptr_t.
|
||||
* score/inline/rtems/score/address.inl: Remove
|
||||
RTEMS_CPU_HAS_16_BIT_ADDRESSES.
|
||||
Use uintptr_t for void* to address cast.
|
||||
|
||||
2005-01-24 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libcsupport/include/stdint.h: Use __PTRDIFF_TYPE for intptr_t.
|
||||
|
||||
@@ -51,7 +51,7 @@ extern "C" {
|
||||
* 'rtems/score/types.h' and used here.
|
||||
*/
|
||||
|
||||
typedef unsigned long int _H_uptr_t;
|
||||
typedef uintptr_t _H_uptr_t;
|
||||
|
||||
/**
|
||||
* Forward reference
|
||||
|
||||
@@ -80,10 +80,8 @@ RTEMS_INLINE_ROUTINE boolean _Addresses_Is_aligned (
|
||||
{
|
||||
#if (CPU_ALIGNMENT == 0)
|
||||
return TRUE;
|
||||
#elif defined(RTEMS_CPU_HAS_16_BIT_ADDRESSES)
|
||||
return ( ( (unsigned short)address % CPU_ALIGNMENT ) == 0 );
|
||||
#else
|
||||
return ( ( (uint32_t )address % CPU_ALIGNMENT ) == 0 );
|
||||
return ( ( (uintptr_t)address % CPU_ALIGNMENT ) == 0 );
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user