Changeset 4314d61 in rtems


Ignore:
Timestamp:
Aug 26, 2009, 11:25:18 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
a4a626b
Parents:
42663eec
Message:

2009-08-26 Sebastian Huber <Sebastian.Huber@…>

  • score/inline/rtems/score/address.inl: Added const qualifier to parameters. Added cast to _Addresses_Subtract() fix a warning.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r42663eec r4314d61  
     12009-08-26      Sebastian Huber <Sebastian.Huber@embedded-brains.de>
     2
     3        * score/inline/rtems/score/address.inl: Added const qualifier
     4        to parameters.  Added cast to _Addresses_Subtract() fix a warning.
     5
    162009-08-26      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • cpukit/score/inline/rtems/score/address.inl

    r42663eec r4314d61  
    4242#include <rtems/bspIo.h>
    4343RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (
    44   void      *base,
     44  const void *base,
    4545  intptr_t    offset
    4646)
     
    6262
    6363RTEMS_INLINE_ROUTINE void *_Addresses_Subtract_offset (
    64   void      *base,
     64  const void *base,
    6565  intptr_t    offset
    6666)
     
    8383 */
    8484RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract (
    85   void *left,
    86   void *right
     85  const void *left,
     86  const void *right
    8787)
    8888{
    89   return ((char *) left - (char *) right);
     89  return (int32_t) ((const char *) left - (const char *) right);
    9090}
    9191
     
    102102 */
    103103RTEMS_INLINE_ROUTINE bool _Addresses_Is_aligned (
    104   void *address
     104  const void *address
    105105)
    106106{
     
    128128 */
    129129RTEMS_INLINE_ROUTINE bool _Addresses_Is_in_range (
    130   void *address,
    131   void *base,
    132   void *limit
     130  const void *address,
     131  const void *base,
     132  const void *limit
    133133)
    134134{
Note: See TracChangeset for help on using the changeset viewer.