From 14426c8fb89e6d37a3a53e1d05df87082de7c860 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 24 Jan 2005 15:05:14 +0000 Subject: 2005-01-24 Ralf Corsepius * 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. --- cpukit/score/inline/rtems/score/address.inl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cpukit/score/inline/rtems/score/address.inl') diff --git a/cpukit/score/inline/rtems/score/address.inl b/cpukit/score/inline/rtems/score/address.inl index 11c987306f..44079af2ea 100644 --- a/cpukit/score/inline/rtems/score/address.inl +++ b/cpukit/score/inline/rtems/score/address.inl @@ -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 } -- cgit v1.2.3