Changeset c41fbf in git
- Timestamp:
- May 17, 2010, 7:19:45 PM (14 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 78e67ebed527a6a6c46377271737846d0daadcbd
- Parents:
- 4f3b79efc8dad5c9a3fd5fda10687e411d13eb1a
- Location:
- kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/gnumpc.cc
r4f3b79 rc41fbf 382 382 return (((gmp_complex*)b)->real().sign() < 0); 383 383 } 384 if ( b==NULL )384 else if ( b==NULL ) 385 385 { 386 386 return (((gmp_complex*)a)->real().sign() < 0); 387 } 388 else 389 { 390 return ((gmp_complex*)a) > ((gmp_complex*)b); 387 391 } 388 392 return FALSE; -
kernel/mpr_complex.h
r4f3b79 rc41fbf 215 215 216 216 inline friend bool operator == ( const gmp_complex & a, const gmp_complex & b ); 217 inline friend bool operator > ( const gmp_complex & a, const gmp_complex & b ); 218 inline friend bool operator < ( const gmp_complex & a, const gmp_complex & b ); 219 inline friend bool operator >= ( const gmp_complex & a, const gmp_complex & b ); 220 inline friend bool operator <= ( const gmp_complex & a, const gmp_complex & b ); 217 221 218 222 inline gmp_complex & operator = ( const gmp_complex & a ); … … 255 259 return ( b.real() == a.real() ) && ( b.imag() == a.imag() ); 256 260 } 261 inline bool operator > ( const gmp_complex & a, const gmp_complex & b ) 262 { 263 return ( a.real() > b.real() ); 264 } 265 inline bool operator < ( const gmp_complex & a, const gmp_complex & b ) 266 { 267 return ( a.real() < b.real() ); 268 } 269 inline bool operator >= ( const gmp_complex & a, const gmp_complex & b ) 270 { 271 return ( a.real() >= b.real() ); 272 } 273 inline bool operator <= ( const gmp_complex & a, const gmp_complex & b ) 274 { 275 return ( a.real() <= b.real() ); 276 } 277 257 278 258 279 // <gmp_complex> = <gmp_complex>
Note: See TracChangeset
for help on using the changeset viewer.