CVS update: /common/include/platform/symbian/

CVS update: /common/include/platform/symbian/

nhart at helixcommunity.org nhart at helixcommunity.org
Thu Jan 16 22:14:17 PST 2003


User: nhart   
Date: 03/01/16 14:14:17

Modified
 /common/include/platform/symbian/
  symbiantypes.h

Log
 Reviewed by:   milko
 more SymInt64/int operators

File Changes:

Directory: /common/include/platform/symbian/
============================================

File [changed]: symbiantypes.h
Url: https://common.helixcommunity.org/source/browse/common/include/platform/symbian/symbiantypes.h.diff?r1=1.3&r2=1.4
Delta lines:  +37 -0
--------------------
--- symbiantypes.h	14 Jan 2003 19:25:08 -0000	1.3
+++ symbiantypes.h	16 Jan 2003 22:14:17 -0000	1.4
@@ -76,6 +76,7 @@
     inline SymInt64  operator--(TInt);
     inline SymInt64  operator>>(TInt aShift) const;
     inline SymInt64  operator<<(TInt aShift) const;
+    inline SymInt64  operator!() const { return *this == 0; }
 
     inline SymInt64& operator+=(const SymInt64 &aVal);
     inline SymInt64& operator-=(const SymInt64 &aVal);
@@ -449,6 +450,42 @@
 {
     return TInt64::GetTReal();
 }
+
+
+// operators for SymInt64 and smaller precision types
+inline TInt operator==(const int& aVal, const SymInt64& bVal)
+{
+    return bVal == aVal;
+}
+
+inline TInt operator!=(const int& aVal, const SymInt64& bVal)
+{
+    return bVal != aVal;
+}
+
+inline TInt operator>=(const int& aVal, const SymInt64& bVal)
+{
+    return bVal <= aVal;
+}
+
+inline TInt operator<=(const int& aVal, const SymInt64& bVal)
+{
+    return bVal >= aVal;
+}
+
+inline TInt operator>(const  int& aVal, const SymInt64& bVal)
+{
+    return bVal < aVal;
+}
+
+inline TInt operator<(const  int& aVal, const SymInt64& bVal)
+{
+    return bVal > aVal;
+}
+
+
+
+
 
 
 #endif /* _SYMBIANTYPES_H_ */  /* Nothing past here */




---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe at common.helixcommunity.org
For additional commands, e-mail: cvs-help at common.helixcommunity.org




More information about the Common-cvs mailing list
 

Site Map   |   Terms of Use   |   Privacy Policy   |   Contact Us

Copyright © 1995-2007 RealNetworks, Inc. All rights reserved. RealNetworks and Helix are trademarks of RealNetworks.
All other trademarks or registered trademarks are the property of their respective holders.