Changeset b2de426 in rtems for cpukit/include/rtems/score/address.h
- Timestamp:
- Aug 6, 2018, 9:53:42 AM (3 years ago)
- Branches:
- 5, master
- Children:
- 0fc87d47
- Parents:
- 66cb142
- git-author:
- Sebastian Huber <sebastian.huber@…> (08/06/18 09:53:42)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (08/10/18 05:14:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/include/rtems/score/address.h
r66cb142 rb2de426 78 78 79 79 /** 80 * @brief Subtract two offsets.80 * @brief Subtract two addresses. 81 81 * 82 82 * This function is used to subtract two addresses. It returns the … … 87 87 * 88 88 * @return This method returns the resulting address. 89 *90 * @note The cast of an address to an uint32_t makes this code91 * dependent on an addresses being thirty two bits.92 89 */ 93 RTEMS_INLINE_ROUTINE int 32_t _Addresses_Subtract(90 RTEMS_INLINE_ROUTINE intptr_t _Addresses_Subtract( 94 91 const void *left, 95 92 const void *right 96 93 ) 97 94 { 98 return (int 32_t) ((const char *) left - (const char *) right);95 return (intptr_t) ( (const char *) left - (const char *) right ); 99 96 } 100 97
Note: See TracChangeset
for help on using the changeset viewer.