summaryrefslogtreecommitdiff
path: root/TAO/tao/align.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-21 14:11:45 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-02-21 14:11:45 +0000
commit6b73b5c3972bbe73a18c7e23c71c7a5a01c8d1e4 (patch)
treee054fb7fbe50bd8063664d54895c57d65bd111a5 /TAO/tao/align.h
parent128e2138c5dc8b6c24f46c959e7d56b7fadfa0e1 (diff)
downloadATCD-6b73b5c3972bbe73a18c7e23c71c7a5a01c8d1e4.tar.gz
use ACE Basic_Types instead of local SIZEOF_* macros
Diffstat (limited to 'TAO/tao/align.h')
-rw-r--r--TAO/tao/align.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/TAO/tao/align.h b/TAO/tao/align.h
index ad689f33e63..eaeed318bf8 100644
--- a/TAO/tao/align.h
+++ b/TAO/tao/align.h
@@ -5,7 +5,7 @@
//
// = LIBRARY
// TAO
-//
+//
// = FILENAME
// align.h
//
@@ -19,27 +19,27 @@
//
// = AUTHOR
// Copyright 1994-1995 by Sun Microsystems, Inc.
-//
+//
// ============================================================================
#if !defined (TAO_ALIGN_H)
-#define TAO_ALIGN_H
+#define TAO_ALIGN_H
// Type for doing arithmetic on pointers ... as elsewhere, we assume
// that "unsigned" versions of a type are the same size as the
// "signed" version of the same type.
-#if SIZEOF_VOID_P == SIZEOF_INT
+#if ACE_SIZEOF_VOID_P == ACE_SIZEOF_INT
typedef u_int ptr_arith_t;
-#elif SIZEOF_VOID_P == SIZEOF_LONG
+#elif ACE_SIZEOF_VOID_P == ACE_SIZEOF_LONG
typedef u_long ptr_arith_t;
-#elif SIZEOF_VOID_P == SIZEOF_LONG_LONG
+#elif ACE_SIZEOF_VOID_P == ACE_SIZEOF_LONG_LONG
typedef u_long long ptr_arith_t;
#else
-# error "Can't find a suitable type for doing pointer arithmetic."
+# error "Can't find a suitable type for doing pointer arithmetic."
#endif /* error */
// Efficiently align "value" up to "alignment", knowing that all such
@@ -49,7 +49,7 @@ typedef u_long long ptr_arith_t;
#if 0
static inline ptr_arith_t
align_binary (const ptr_arith_t value,
- size_t alignment)
+ size_t alignment)
{
ptr_arith_t temp = alignment - 1;
@@ -68,8 +68,8 @@ align_binary (const ptr_arith_t value,
#if 0
static inline u_char *
-ptr_align_binary (const u_char *ptr,
- size_t alignment)
+ptr_align_binary (const u_char *ptr,
+ size_t alignment)
{
return (u_char *) align_binary ((ptr_arith_t) ptr, alignment);
}