epoc32/include/e32math.inl
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@2
     1
// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@2
     2
// All rights reserved.
williamr@2
     3
// This component and the accompanying materials are made available
williamr@4
     4
// under the terms of the License "Eclipse Public License v1.0"
williamr@2
     5
// which accompanies this distribution, and is available
williamr@4
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@2
     7
//
williamr@2
     8
// Initial Contributors:
williamr@2
     9
// Nokia Corporation - initial contribution.
williamr@2
    10
//
williamr@2
    11
// Contributors:
williamr@2
    12
//
williamr@2
    13
// Description:
williamr@2
    14
// e32\include\e32math.inl
williamr@2
    15
// 
williamr@2
    16
//
williamr@2
    17
williamr@2
    18
#if !defined(__E32MATH_INL__)
williamr@2
    19
#define __E32MATH_INL__
williamr@2
    20
williamr@2
    21
williamr@2
    22
williamr@2
    23
williamr@2
    24
// class TRealX
williamr@2
    25
williamr@2
    26
TBool TRealX::operator==(const TRealX &aVal) const
williamr@2
    27
/**
williamr@2
    28
@publishedAll
williamr@2
    29
@released
williamr@2
    30
williamr@2
    31
Compares this extended precision number for equality with another.
williamr@2
    32
williamr@2
    33
@param aVal A reference to the extended precision value to be compared.
williamr@2
    34
williamr@2
    35
@return True, if this extended precision number is equal to aVal;
williamr@2
    36
        false, otherwise.
williamr@2
    37
*/
williamr@2
    38
	{
williamr@2
    39
	return(Compare(aVal)&EEqual);
williamr@2
    40
	}
williamr@2
    41
williamr@2
    42
williamr@2
    43
williamr@2
    44
williamr@2
    45
TBool TRealX::operator!=(const TRealX &aVal) const
williamr@2
    46
/**
williamr@2
    47
@publishedAll
williamr@2
    48
@released
williamr@2
    49
williamr@2
    50
Compares this extended precision number for in-equality with another.
williamr@2
    51
williamr@2
    52
@param aVal A reference to the extended precision value to be compared.
williamr@2
    53
williamr@2
    54
@return True, if this extended precision number is not equal to aVal;
williamr@2
    55
        false, otherwise.
williamr@2
    56
*/
williamr@2
    57
	{
williamr@2
    58
	return!(Compare(aVal)&EEqual);
williamr@2
    59
	}
williamr@2
    60
williamr@2
    61
williamr@2
    62
williamr@2
    63
williamr@2
    64
TBool TRealX::operator>=(const TRealX &aVal) const
williamr@2
    65
/**
williamr@2
    66
@publishedAll
williamr@2
    67
@released
williamr@2
    68
williamr@2
    69
Compares this extended precision number for being greater than
williamr@2
    70
or equal to another.
williamr@2
    71
williamr@2
    72
@param aVal A reference to the extended precision value to be compared.
williamr@2
    73
williamr@2
    74
@return True, if this extended precision number is greater than or equal
williamr@2
    75
        to aVal, false, otherwise.
williamr@2
    76
*/
williamr@2
    77
	{
williamr@2
    78
	return(Compare(aVal)&(EEqual|EGreaterThan));
williamr@2
    79
	}
williamr@2
    80
williamr@2
    81
williamr@2
    82
williamr@2
    83
williamr@2
    84
TBool TRealX::operator<=(const TRealX &aVal) const
williamr@2
    85
/**
williamr@2
    86
@publishedAll
williamr@2
    87
@released
williamr@2
    88
williamr@2
    89
Compares this extended precision number for being less than
williamr@2
    90
or equal to another.
williamr@2
    91
williamr@2
    92
@param aVal A reference to the extended precision value to be compared.
williamr@2
    93
williamr@2
    94
@return True, if this extended precision number is less than or equal
williamr@2
    95
        to aVal, false, otherwise.
williamr@2
    96
*/
williamr@2
    97
	{
williamr@2
    98
	return(Compare(aVal)&(ELessThan|EEqual));
williamr@2
    99
	}
williamr@2
   100
williamr@2
   101
williamr@2
   102
williamr@2
   103
williamr@2
   104
TBool TRealX::operator>(const TRealX &aVal) const
williamr@2
   105
/**
williamr@2
   106
@publishedAll
williamr@2
   107
@released
williamr@2
   108
williamr@2
   109
Compares this extended precision number for being greater than
williamr@2
   110
another.
williamr@2
   111
williamr@2
   112
@param aVal A reference to the extended precision value to be compared.
williamr@2
   113
williamr@2
   114
@return True, if this extended precision number is greater than aVal,
williamr@2
   115
        false, otherwise.
williamr@2
   116
*/
williamr@2
   117
	{
williamr@2
   118
	return(Compare(aVal)&EGreaterThan);
williamr@2
   119
	}
williamr@2
   120
williamr@2
   121
williamr@2
   122
williamr@2
   123
williamr@2
   124
TBool TRealX::operator<(const TRealX &aVal) const
williamr@2
   125
/**
williamr@2
   126
@publishedAll
williamr@2
   127
@released
williamr@2
   128
williamr@2
   129
Compares this extended precision number for being less than
williamr@2
   130
another.
williamr@2
   131
williamr@2
   132
@param aVal A reference to the extended precision value to be compared.
williamr@2
   133
williamr@2
   134
@return True, if this extended precision number is less than aVal,
williamr@2
   135
        false, otherwise.
williamr@2
   136
*/
williamr@2
   137
	{
williamr@2
   138
	return(Compare(aVal)&ELessThan);
williamr@2
   139
	}
williamr@2
   140
williamr@2
   141
#endif