Changeset 4162 for trunk/psLib/src/math/psCompare.h
- Timestamp:
- Jun 8, 2005, 1:40:46 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/math/psCompare.h (modified) (44 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/math/psCompare.h
r3264 r4162 6 6 * @ingroup Compare 7 7 * 8 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $9 * @date $Date: 2005-0 2-17 19:26:23$8 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 9 * @date $Date: 2005-06-08 23:40:45 $ 10 10 * 11 11 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii 12 12 */ 13 13 14 #if !defined(PS_COMPARE_H)14 #ifndef PS_COMPARE_H 15 15 #define PS_COMPARE_H 16 16 … … 24 24 * e.g., for psList of pointers to numeric values. 25 25 * 26 * @return int an integer less than, equal to, or greater than zero if 27 * the first argument is considered to be respectively less 28 * than, equal to, or greater than the second. 26 * @return int an integer less than, equal to, or greater than zero if 27 * the first argument is considered to be respectively less 28 * than, equal to, or greater than the second. 29 29 */ 30 30 typedef int (*psComparePtrFcn) ( … … 35 35 /** A comparison function for sorting. 36 36 * 37 * @return int an integer less than, equal to, or greater than zero if 38 * the first argument is considered to be respectively less 39 * than, equal to, or greater than the second. 37 * @return int an integer less than, equal to, or greater than zero if 38 * the first argument is considered to be respectively less 39 * than, equal to, or greater than the second. 40 40 */ 41 41 typedef int (*psCompareFcn) ( … … 46 46 /** Compare function of psS8 data. For use with psListSort. 47 47 * 48 * @return int an integer less than, equal to, or greater than zero if 49 * the first argument is considered to be respectively less 50 * than, equal to, or greater than the second. 48 * @return int an integer less than, equal to, or greater than zero if 49 * the first argument is considered to be respectively less 50 * than, equal to, or greater than the second. 51 51 */ 52 52 int psCompareS8Ptr( … … 57 57 /** Compare function of psS16 data. For use with psListSort. 58 58 * 59 * @return int an integer less than, equal to, or greater than zero if 60 * the first argument is considered to be respectively less 61 * than, equal to, or greater than the second. 59 * @return int an integer less than, equal to, or greater than zero if 60 * the first argument is considered to be respectively less 61 * than, equal to, or greater than the second. 62 62 */ 63 63 int psCompareS16Ptr( … … 68 68 /** Compare function of psS32 data. For use with psListSort. 69 69 * 70 * @return int an integer less than, equal to, or greater than zero if 71 * the first argument is considered to be respectively less 72 * than, equal to, or greater than the second. 70 * @return int an integer less than, equal to, or greater than zero if 71 * the first argument is considered to be respectively less 72 * than, equal to, or greater than the second. 73 73 */ 74 74 int psCompareS32Ptr( … … 79 79 /** Compare function of psS64 data. For use with psListSort. 80 80 * 81 * @return int an integer less than, equal to, or greater than zero if 82 * the first argument is considered to be respectively less 83 * than, equal to, or greater than the second. 81 * @return int an integer less than, equal to, or greater than zero if 82 * the first argument is considered to be respectively less 83 * than, equal to, or greater than the second. 84 84 */ 85 85 int psCompareS64Ptr( … … 90 90 /** Compare function of psU8 data. For use with psListSort. 91 91 * 92 * @return int an integer less than, equal to, or greater than zero if 93 * the first argument is considered to be respectively less 94 * than, equal to, or greater than the second. 92 * @return int an integer less than, equal to, or greater than zero if 93 * the first argument is considered to be respectively less 94 * than, equal to, or greater than the second. 95 95 */ 96 96 int psCompareU8Ptr( … … 101 101 /** Compare function of psU16 data. For use with psListSort. 102 102 * 103 * @return int an integer less than, equal to, or greater than zero if 104 * the first argument is considered to be respectively less 105 * than, equal to, or greater than the second. 103 * @return int an integer less than, equal to, or greater than zero if 104 * the first argument is considered to be respectively less 105 * than, equal to, or greater than the second. 106 106 */ 107 107 int psCompareU16Ptr( … … 112 112 /** Compare function of psU32 data. For use with psListSort. 113 113 * 114 * @return int an integer less than, equal to, or greater than zero if 115 * the first argument is considered to be respectively less 116 * than, equal to, or greater than the second. 114 * @return int an integer less than, equal to, or greater than zero if 115 * the first argument is considered to be respectively less 116 * than, equal to, or greater than the second. 117 117 */ 118 118 int psCompareU32Ptr( … … 123 123 /** Compare function of psU64 data. For use with psListSort. 124 124 * 125 * @return int an integer less than, equal to, or greater than zero if 126 * the first argument is considered to be respectively less 127 * than, equal to, or greater than the second. 125 * @return int an integer less than, equal to, or greater than zero if 126 * the first argument is considered to be respectively less 127 * than, equal to, or greater than the second. 128 128 */ 129 129 int psCompareU64Ptr( … … 134 134 /** Compare function of psF32 data. For use with psListSort. 135 135 * 136 * @return int an integer less than, equal to, or greater than zero if 137 * the first argument is considered to be respectively less 138 * than, equal to, or greater than the second. 136 * @return int an integer less than, equal to, or greater than zero if 137 * the first argument is considered to be respectively less 138 * than, equal to, or greater than the second. 139 139 */ 140 140 int psCompareF32Ptr( … … 145 145 /** Compare function of psF64 data. For use with psListSort. 146 146 * 147 * @return int an integer less than, equal to, or greater than zero if 148 * the first argument is considered to be respectively less 149 * than, equal to, or greater than the second. 147 * @return int an integer less than, equal to, or greater than zero if 148 * the first argument is considered to be respectively less 149 * than, equal to, or greater than the second. 150 150 */ 151 151 int psCompareF64Ptr( … … 156 156 /** Compare function of psS8 data. For use with psListSort for descending ordering. 157 157 * 158 * @return int an integer less than, equal to, or greater than zero if 159 * the first argument is considered to be respectively greater 160 * than, equal to, or less than the second. 158 * @return int an integer less than, equal to, or greater than zero if 159 * the first argument is considered to be respectively greater 160 * than, equal to, or less than the second. 161 161 */ 162 162 int psCompareDescendingS8Ptr( … … 167 167 /** Compare function of psS16 data. For use with psListSort for descending ordering. 168 168 * 169 * @return int an integer less than, equal to, or greater than zero if 170 * the first argument is considered to be respectively greater 171 * than, equal to, or less than the second. 169 * @return int an integer less than, equal to, or greater than zero if 170 * the first argument is considered to be respectively greater 171 * than, equal to, or less than the second. 172 172 */ 173 173 int psCompareDescendingS16Ptr( … … 178 178 /** Compare function of psS32 data. For use with psListSort for descending ordering. 179 179 * 180 * @return int an integer less than, equal to, or greater than zero if 181 * the first argument is considered to be respectively greater 182 * than, equal to, or less than the second. 180 * @return int an integer less than, equal to, or greater than zero if 181 * the first argument is considered to be respectively greater 182 * than, equal to, or less than the second. 183 183 */ 184 184 int psCompareDescendingS32Ptr( … … 189 189 /** Compare function of psS64 data. For use with psListSort for descending ordering. 190 190 * 191 * @return int an integer less than, equal to, or greater than zero if 192 * the first argument is considered to be respectively greater 193 * than, equal to, or less than the second. 191 * @return int an integer less than, equal to, or greater than zero if 192 * the first argument is considered to be respectively greater 193 * than, equal to, or less than the second. 194 194 */ 195 195 int psCompareDescendingS64Ptr( … … 200 200 /** Compare function of psU8 data. For use with psListSort for descending ordering. 201 201 * 202 * @return int an integer less than, equal to, or greater than zero if 203 * the first argument is considered to be respectively greater 204 * than, equal to, or less than the second. 202 * @return int an integer less than, equal to, or greater than zero if 203 * the first argument is considered to be respectively greater 204 * than, equal to, or less than the second. 205 205 */ 206 206 int psCompareDescendingU8Ptr( … … 211 211 /** Compare function of psU16 data. For use with psListSort for descending ordering. 212 212 * 213 * @return int an integer less than, equal to, or greater than zero if 214 * the first argument is considered to be respectively greater 215 * than, equal to, or less than the second. 213 * @return int an integer less than, equal to, or greater than zero if 214 * the first argument is considered to be respectively greater 215 * than, equal to, or less than the second. 216 216 */ 217 217 int psCompareDescendingU16Ptr( … … 222 222 /** Compare function of psU32 data. For use with psListSort for descending ordering. 223 223 * 224 * @return int an integer less than, equal to, or greater than zero if 225 * the first argument is considered to be respectively greater 226 * than, equal to, or lessg than the second. 224 * @return int an integer less than, equal to, or greater than zero if 225 * the first argument is considered to be respectively greater 226 * than, equal to, or lessg than the second. 227 227 */ 228 228 int psCompareDescendingU32Ptr( … … 233 233 /** Compare function of psU64 data. For use with psListSort for descending ordering. 234 234 * 235 * @return int an integer less than, equal to, or greater than zero if 236 * the first argument is considered to be respectively greater 237 * than, equal to, or lessg than the second. 235 * @return int an integer less than, equal to, or greater than zero if 236 * the first argument is considered to be respectively greater 237 * than, equal to, or lessg than the second. 238 238 */ 239 239 int psCompareDescendingU64Ptr( … … 244 244 /** Compare function of psF32 data. For use with psListSort for descending ordering. 245 245 * 246 * @return int an integer less than, equal to, or greater than zero if 247 * the first argument is considered to be respectively greater 248 * than, equal to, or lessg than the second. 246 * @return int an integer less than, equal to, or greater than zero if 247 * the first argument is considered to be respectively greater 248 * than, equal to, or lessg than the second. 249 249 */ 250 250 int psCompareDescendingF32Ptr( … … 255 255 /** Compare function of psF64 data. For use with psListSort for descending ordering. 256 256 * 257 * @return int an integer less than, equal to, or greater than zero if 258 * the first argument is considered to be respectively greater 259 * than, equal to, or lessg than the second. 257 * @return int an integer less than, equal to, or greater than zero if 258 * the first argument is considered to be respectively greater 259 * than, equal to, or lessg than the second. 260 260 */ 261 261 int psCompareDescendingF64Ptr( … … 266 266 /** Compare function of psS8 data. 267 267 * 268 * @return int an integer less than, equal to, or greater than zero if 269 * the first argument is considered to be respectively less 270 * than, equal to, or greater than the second. 268 * @return int an integer less than, equal to, or greater than zero if 269 * the first argument is considered to be respectively less 270 * than, equal to, or greater than the second. 271 271 */ 272 272 int psCompareS8( … … 278 278 /** Compare function of psS16 data. 279 279 * 280 * @return int an integer less than, equal to, or greater than zero if 281 * the first argument is considered to be respectively less 282 * than, equal to, or greater than the second. 280 * @return int an integer less than, equal to, or greater than zero if 281 * the first argument is considered to be respectively less 282 * than, equal to, or greater than the second. 283 283 */ 284 284 int psCompareS16( … … 290 290 /** Compare function of psS32 data. 291 291 * 292 * @return int an integer less than, equal to, or greater than zero if 293 * the first argument is considered to be respectively less 294 * than, equal to, or greater than the second. 292 * @return int an integer less than, equal to, or greater than zero if 293 * the first argument is considered to be respectively less 294 * than, equal to, or greater than the second. 295 295 */ 296 296 int psCompareS32( … … 302 302 /** Compare function of psS64 data. 303 303 * 304 * @return int an integer less than, equal to, or greater than zero if 305 * the first argument is considered to be respectively less 306 * than, equal to, or greater than the second. 304 * @return int an integer less than, equal to, or greater than zero if 305 * the first argument is considered to be respectively less 306 * than, equal to, or greater than the second. 307 307 */ 308 308 int psCompareS64( … … 314 314 /** Compare function of psU8 data. 315 315 * 316 * @return int an integer less than, equal to, or greater than zero if 317 * the first argument is considered to be respectively less 318 * than, equal to, or greater than the second. 316 * @return int an integer less than, equal to, or greater than zero if 317 * the first argument is considered to be respectively less 318 * than, equal to, or greater than the second. 319 319 */ 320 320 int psCompareU8( … … 326 326 /** Compare function of psU16 data. 327 327 * 328 * @return int an integer less than, equal to, or greater than zero if 329 * the first argument is considered to be respectively less 330 * than, equal to, or greater than the second. 328 * @return int an integer less than, equal to, or greater than zero if 329 * the first argument is considered to be respectively less 330 * than, equal to, or greater than the second. 331 331 */ 332 332 int psCompareU16( … … 338 338 /** Compare function of psU32 data. 339 339 * 340 * @return int an integer less than, equal to, or greater than zero if 341 * the first argument is considered to be respectively less 342 * than, equal to, or greater than the second. 340 * @return int an integer less than, equal to, or greater than zero if 341 * the first argument is considered to be respectively less 342 * than, equal to, or greater than the second. 343 343 */ 344 344 int psCompareU32( … … 350 350 /** Compare function of psU64 data. 351 351 * 352 * @return int an integer less than, equal to, or greater than zero if 353 * the first argument is considered to be respectively less 354 * than, equal to, or greater than the second. 352 * @return int an integer less than, equal to, or greater than zero if 353 * the first argument is considered to be respectively less 354 * than, equal to, or greater than the second. 355 355 */ 356 356 int psCompareU64( … … 362 362 /** Compare function of psF32 data. 363 363 * 364 * @return int an integer less than, equal to, or greater than zero if 365 * the first argument is considered to be respectively less 366 * than, equal to, or greater than the second. 364 * @return int an integer less than, equal to, or greater than zero if 365 * the first argument is considered to be respectively less 366 * than, equal to, or greater than the second. 367 367 */ 368 368 int psCompareF32( … … 374 374 /** Compare function of psF64 data. 375 375 * 376 * @return int an integer less than, equal to, or greater than zero if 377 * the first argument is considered to be respectively less 378 * than, equal to, or greater than the second. 376 * @return int an integer less than, equal to, or greater than zero if 377 * the first argument is considered to be respectively less 378 * than, equal to, or greater than the second. 379 379 */ 380 380 int psCompareF64( … … 386 386 /** Compare function of psS8 data. 387 387 * 388 * @return int an integer less than, equal to, or greater than zero if 389 * the first argument is considered to be respectively greater 390 * than, equal to, or less than the second. 388 * @return int an integer less than, equal to, or greater than zero if 389 * the first argument is considered to be respectively greater 390 * than, equal to, or less than the second. 391 391 */ 392 392 int psCompareDescendingS8( … … 398 398 /** Compare function of psS16 data. 399 399 * 400 * @return int an integer less than, equal to, or greater than zero if 401 * the first argument is considered to be respectively greater 402 * than, equal to, or less than the second. 400 * @return int an integer less than, equal to, or greater than zero if 401 * the first argument is considered to be respectively greater 402 * than, equal to, or less than the second. 403 403 */ 404 404 int psCompareDescendingS16( … … 410 410 /** Compare function of psS32 data. 411 411 * 412 * @return int an integer less than, equal to, or greater than zero if 413 * the first argument is considered to be respectively greater 414 * than, equal to, or less than the second. 412 * @return int an integer less than, equal to, or greater than zero if 413 * the first argument is considered to be respectively greater 414 * than, equal to, or less than the second. 415 415 */ 416 416 int psCompareDescendingS32( … … 422 422 /** Compare function of psS64 data. 423 423 * 424 * @return int an integer less than, equal to, or greater than zero if 425 * the first argument is considered to be respectively greater 426 * than, equal to, or less than the second. 424 * @return int an integer less than, equal to, or greater than zero if 425 * the first argument is considered to be respectively greater 426 * than, equal to, or less than the second. 427 427 */ 428 428 int psCompareDescendingS64( … … 434 434 /** Compare function of psU8 data. 435 435 * 436 * @return int an integer less than, equal to, or greater than zero if 437 * the first argument is considered to be respectively greater 438 * than, equal to, or less than the second. 436 * @return int an integer less than, equal to, or greater than zero if 437 * the first argument is considered to be respectively greater 438 * than, equal to, or less than the second. 439 439 */ 440 440 int psCompareDescendingU8( … … 446 446 /** Compare function of psU16 data. 447 447 * 448 * @return int an integer less than, equal to, or greater than zero if 449 * the first argument is considered to be respectively greater 450 * than, equal to, or less than the second. 448 * @return int an integer less than, equal to, or greater than zero if 449 * the first argument is considered to be respectively greater 450 * than, equal to, or less than the second. 451 451 */ 452 452 int psCompareDescendingU16( … … 458 458 /** Compare function of psU32 data. 459 459 * 460 * @return int an integer less than, equal to, or greater than zero if 461 * the first argument is considered to be respectively greater 462 * than, equal to, or less than the second. 460 * @return int an integer less than, equal to, or greater than zero if 461 * the first argument is considered to be respectively greater 462 * than, equal to, or less than the second. 463 463 */ 464 464 int psCompareDescendingU32( … … 470 470 /** Compare function of psU64 data. 471 471 * 472 * @return int an integer less than, equal to, or greater than zero if 473 * the first argument is considered to be respectively greater 474 * than, equal to, or less than the second. 472 * @return int an integer less than, equal to, or greater than zero if 473 * the first argument is considered to be respectively greater 474 * than, equal to, or less than the second. 475 475 */ 476 476 int psCompareDescendingU64( … … 482 482 /** Compare function of psF32 data. 483 483 * 484 * @return int an integer less than, equal to, or greater than zero if 485 * the first argument is considered to be respectively greater 486 * than, equal to, or less than the second. 484 * @return int an integer less than, equal to, or greater than zero if 485 * the first argument is considered to be respectively greater 486 * than, equal to, or less than the second. 487 487 */ 488 488 int psCompareDescendingF32( … … 494 494 /** Compare function of psF64 data. 495 495 * 496 * @return int an integer less than, equal to, or greater than zero if 497 * the first argument is considered to be respectively greater 498 * than, equal to, or less than the second. 496 * @return int an integer less than, equal to, or greater than zero if 497 * the first argument is considered to be respectively greater 498 * than, equal to, or less than the second. 499 499 */ 500 500 int psCompareDescendingF64( … … 506 506 /// @} 507 507 508 #endif 508 #endif // #ifndef PS_COMPARE_H
Note:
See TracChangeset
for help on using the changeset viewer.
