12.07.2015 Views

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

Intel® Fortran Libraries Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Descriptions of the Library Routines 2count(Input; output) INTEGER(4) on IA-32 processors; INTEGER(8) on Intel Itanium processors. Oninput, number of elements in the array to be sorted. On output, number of elements actually sorted.size(Input) INTEGER(4). Positive constant less than 32,767 that specifies the kind of array to besorted. The following constants, defined in IFPORT.F90, specify type and kind for numericarrays:ConstantSRT$INTEGER1SRT$INTEGER2SRT$INTEGER4SRT$INTEGER8SRT$REAL4SRT$REAL8SRT$REAL16Type of ArrayINTEGER(1)INTEGER(2) or equivalentINTEGER(4) or equivalentINTEGER(8) or equivalentREAL(4) or equivalentREAL(8) or equivalentREAL(16) or equivalentIf the value provided in size is not a symbolic constant and is less than 32,767, the array isassumed to be a character array with size characters per element.To be certain that SORTQQ is successful, compare the value returned in count to the value youprovided. If they are the same, then SORTQQ sorted the correct number of elements.CAUTION. The location of the array must be passed by address using theLOC intrinsic function. This defeats <strong>Fortran</strong> type-checking, so you must makecertain that the count and size arguments are correct.If you pass invalid arguments, SORTQQ attempts to sort random parts ofmemory. If the memory it attempts to sort is allocated to the current process,that memory is sorted; otherwise, the operating system intervenes, the programis halted, and you get a General Protection Violation message.CompatibilityCONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIBSee Also: “BSEARCHQQ”, the LOC intrinsic function in the Language <strong>Reference</strong>2-447

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!