summaryrefslogtreecommitdiffstats
path: root/doc/tools
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2007-12-07 02:58:44 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2007-12-07 02:58:44 +0000
commit8272b10998575afa250d28c3d390b4f285756be7 (patch)
tree1c5dcdb2d99760ca6791c706eda54bc46d114853 /doc/tools
parent2007-12-06 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-8272b10998575afa250d28c3d390b4f285756be7.tar.bz2
Remove unused functions.
Diffstat (limited to 'doc/tools')
-rw-r--r--doc/tools/bmenu/address.h76
-rw-r--r--doc/tools/bmenu/address.inl75
2 files changed, 0 insertions, 151 deletions
diff --git a/doc/tools/bmenu/address.h b/doc/tools/bmenu/address.h
index dbb1f13ac0..22faa9b454 100644
--- a/doc/tools/bmenu/address.h
+++ b/doc/tools/bmenu/address.h
@@ -30,82 +30,6 @@ STATIC INLINE void *_Addresses_Add_offset (
size_t offset
);
-/*
- * _Addresses_Subtract_offset
- *
- * DESCRIPTION:
- *
- * This function is used to subtract an offset from a base
- * address. It returns the resulting address. This address is
- * typically converted to an access type before being used further.
- */
-
-STATIC INLINE void *_Addresses_Subtract_offset(
- void *base,
- size_t offset
-);
-
-/*
- * _Addresses_Add
- *
- * DESCRIPTION:
- *
- * This function is used to add two addresses. It returns the
- * resulting address. This address is typically converted to an
- * access type before being used further.
- */
-
-STATIC INLINE void *_Addresses_Add (
- void *left,
- void *right
-);
-
-/*
- * _Addresses_Subtract
- *
- * DESCRIPTION:
- *
- * This function is used to subtract two addresses. It returns the
- * resulting offset.
- */
-
-STATIC INLINE ptrdiff_t _Addresses_Subtract (
- void *left,
- void *right
-);
-
-/*
- * _Addresses_Is_aligned
- *
- * DESCRIPTION:
- *
- * This function returns TRUE if the given address is correctly
- * aligned for this processor and FALSE otherwise. Proper alignment
- * is based on correctness and efficiency.
- */
-
-STATIC INLINE boolean _Addresses_Is_aligned (
- void *address
-);
-
-/*
- * _Addresses_Is_in_range
- *
- * DESCRIPTION:
- *
- * This function returns TRUE if the given address is within the
- * memory range specified and FALSE otherwise. base is the address
- * of the first byte in the memory range and limit is the address
- * of the last byte in the memory range. The base address is
- * assumed to be lower than the limit address.
- */
-
-STATIC INLINE boolean _Addresses_Is_in_range (
- void *address,
- void *base,
- void *limit
-);
-
#include "address.inl"
#endif
diff --git a/doc/tools/bmenu/address.inl b/doc/tools/bmenu/address.inl
index 0dff9e3e24..6b079d7f9d 100644
--- a/doc/tools/bmenu/address.inl
+++ b/doc/tools/bmenu/address.inl
@@ -14,7 +14,6 @@
#define __INLINE_ADDRESSES_inl
#include <stddef.h>
-#include <stdint.h>
/*PAGE
*
@@ -30,79 +29,5 @@ STATIC INLINE void *_Addresses_Add_offset (
return (base + offset);
}
-/*PAGE
- *
- * _Addresses_Subtract_offset
- *
- */
-
-STATIC INLINE void *_Addresses_Subtract_offset (
- void *base,
- size_t offset
-)
-{
- return (base - offset);
-}
-
-/*PAGE
- *
- * _Addresses_Add
- *
- * NOTE: The cast of an address to an unsigned32 makes this code
- * dependent on an addresses being thirty two bits.
- */
-
-STATIC INLINE void *_Addresses_Add (
- void *left,
- void *right
-)
-{
- return (left + (ptrdiff_t) right);
-}
-
-/*PAGE
- *
- * _Addresses_Subtract
- *
- * NOTE: The cast of an address to an unsigned32 makes this code
- * dependent on an addresses being thirty two bits.
- */
-
-STATIC INLINE ptrdiff_t _Addresses_Subtract (
- void *left,
- void *right
-)
-{
- return (left - right);
-}
-
-/*PAGE
- *
- * _Addresses_Is_aligned
- *
- */
-
-STATIC INLINE boolean _Addresses_Is_aligned (
- void *address
-)
-{
- return ( ( (intptr_t)address % 4 ) == 0 );
-}
-
-/*PAGE
- *
- * _Addresses_Is_aligned
- *
- */
-
-STATIC INLINE boolean _Addresses_Is_in_range (
- void *address,
- void *base,
- void *limit
-)
-{
- return ( address >= base && address <= limit );
-}
-
#endif
/* end of include file */