summaryrefslogtreecommitdiff
path: root/ace/OS.i
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-22 18:00:44 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-22 18:00:44 +0000
commit635906446011753044d78fddaba709490cac6807 (patch)
treec61611a59c3482c42680f2b90dad759fc1f5381d /ace/OS.i
parent1397e631ebc95f2f3673ebf93a2bbcef2ed44752 (diff)
downloadATCD-635906446011753044d78fddaba709490cac6807.tar.gz
(ACE_U_LongLong): added operator!=, and made args const to ctor, operator/, hi, and lo
Diffstat (limited to 'ace/OS.i')
-rw-r--r--ace/OS.i14
1 files changed, 10 insertions, 4 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 4dc6e0f489d..4466e0d7d61 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -6740,7 +6740,7 @@ ACE_OS::dup2 (ACE_HANDLE oldhandle, ACE_HANDLE newhandle)
#if ! defined (ACE_WIN32) && ! defined (ACE_HAS_LONGLONG_T)
ACE_INLINE
-ACE_U_LongLong::ACE_U_LongLong (u_long lo, u_long hi)
+ACE_U_LongLong::ACE_U_LongLong (const u_long lo, const u_long hi)
: hi_ (hi), lo_ (lo)
{
}
@@ -6758,13 +6758,13 @@ ACE_U_LongLong::lo (void) const
}
ACE_INLINE void
-ACE_U_LongLong::hi (u_long hi)
+ACE_U_LongLong::hi (const u_long hi)
{
hi_ = hi;
}
ACE_INLINE void
-ACE_U_LongLong::lo (u_long lo)
+ACE_U_LongLong::lo (const u_long lo)
{
lo_ = lo;
}
@@ -6781,6 +6781,12 @@ ACE_U_LongLong::operator== (const ACE_U_LongLong &ll) const
}
ACE_INLINE int
+ACE_U_LongLong::operator!= (const ACE_U_LongLong &ll) const
+{
+ return ! (*this == ll);
+}
+
+ACE_INLINE int
ACE_U_LongLong::operator< (const ACE_U_LongLong &ll) const
{
return hi_ < ll.hi_ ? 1
@@ -6844,7 +6850,7 @@ ACE_U_LongLong::operator- (const ACE_U_LongLong &ll) const
}
ACE_INLINE u_long
-ACE_U_LongLong::operator/ (u_long ul) const
+ACE_U_LongLong::operator/ (const u_long ul) const
{
return hi_ / ul * ULONG_MAX + lo_ / ul;
}