⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intdoc.in

📁 gcc-2.95.3 Linux下最常用的C编译器
💻 IN
📖 第 1 页 / 共 5 页
字号:
/* Copyright (C) 1997, 1999 Free Software Foundation, Inc. * This is part of the G77 manual. * For copying conditions, see the file g77.texi. *//* This is the file containing the verbage for the   intrinsics.  It consists of a data base built up   via DEFDOC macros of the form:   DEFDOC (IMP, SUMMARY, DESCRIPTION)   IMP is the implementation keyword used in the intrin module.   SUMMARY is the short summary to go in the "* Menu:" section   of the Info document.  DESCRIPTION is the longer description   to go in the documentation itself.   Note that IMP is leveraged across multiple intrinsic names.   To make for more accurate and consistent documentation,   the translation made by intdoc.c of the text in SUMMARY   and DESCRIPTION includes the special sequence   @ARGNO@   where ARGNO is a series of digits forming a number that   is substituted by intdoc.c as follows:   0     The initial-caps form of the intrinsic name (e.g. Float).   1-98  The initial-caps form of the ARGNO'th argument.   99    (SUMMARY only) a newline plus the appropriate # of spaces.   Hope this info is enough to encourage people to feel free to   add documentation to this file!*/#define ARCHAIC(upper,mixed) \  "Archaic form of @code{" #upper "()} that is specific\n\to one type for @var{@1@}.\n\@xref{" #mixed " Intrinsic}.\n"#define ARCHAIC_2nd(upper,mixed) \  "Archaic form of @code{" #upper "()} that is specific\n\to one type for @var{@2@}.\n\@xref{" #mixed " Intrinsic}.\n"#define ARCHAIC_2(upper,mixed) \  "Archaic form of @code{" #upper "()} that is specific\n\to one type for @var{@1@} and @var{@2@}.\n\@xref{" #mixed " Intrinsic}.\n"DEFDOC (ABS, "Absolute value.", "\Returns the absolute value of @var{@1@}.If @var{@1@} is type @code{COMPLEX}, the absolutevalue is computed as:@exampleSQRT(REALPART(@var{@1@})**2, IMAGPART(@var{@1@})**2)@end example@noindentOtherwise, it is computed by negating the @var{@1@} ifit is negative, or returning @var{@1@}.@xref{Sign Intrinsic}, for how to explicitlycompute the positive or negative form of the absolutevalue of an expression.")DEFDOC (CABS, "Absolute value (archaic).", ARCHAIC (ABS, Abs))DEFDOC (DABS, "Absolute value (archaic).", ARCHAIC (ABS, Abs))DEFDOC (IABS, "Absolute value (archaic).", ARCHAIC (ABS, Abs))DEFDOC (CDABS, "Absolute value (archaic).", ARCHAIC (ABS, Abs))DEFDOC (ACHAR, "ASCII character from code.", "\Returns the ASCII character corresponding to thecode specified by @var{@1@}.@xref{IAChar Intrinsic}, for the inverse of this function.@xref{Char Intrinsic}, for the function correspondingto the system's native character set.")DEFDOC (IACHAR, "ASCII code for character.", "\Returns the code for the ASCII character in thefirst character position of @var{@1@}.@xref{AChar Intrinsic}, for the inverse of this function.@xref{IChar Intrinsic}, for the function correspondingto the system's native character set.")DEFDOC (CHAR, "Character from code.", "\Returns the character corresponding to thecode specified by @var{@1@}, using the system'snative character set.Because the system's native character set is used,the correspondence between character and their codesis not necessarily the same between GNU Fortranimplementations.Note that no intrinsic exists to convert a numericalvalue to a printable character string.For example, there is no intrinsic that, givenan @code{INTEGER} or @code{REAL} argument with thevalue @samp{154}, returns the @code{CHARACTER}result @samp{'154'}.Instead, you can use internal-file I/O to do this kindof conversion.For example:@smallexampleINTEGER VALUECHARACTER*10 STRINGVALUE = 154WRITE (STRING, '(I10)'), VALUEPRINT *, STRINGEND@end smallexampleThe above program, when run, prints:@smallexample        154@end smallexample@xref{IChar Intrinsic}, for the inverse of the @code{@0@} function.@xref{AChar Intrinsic}, for the function correspondingto the ASCII character set.")DEFDOC (ICHAR, "Code for character.", "\Returns the code for the character in thefirst character position of @var{@1@}.Because the system's native character set is used,the correspondence between character and their codesis not necessarily the same between GNU Fortranimplementations.Note that no intrinsic exists to convert a printablecharacter string to a numerical value.For example, there is no intrinsic that, giventhe @code{CHARACTER} value @samp{'154'}, returns an@code{INTEGER} or @code{REAL} value with the value @samp{154}.Instead, you can use internal-file I/O to do this kindof conversion.For example:@smallexampleINTEGER VALUECHARACTER*10 STRINGSTRING = '154'READ (STRING, '(I10)'), VALUEPRINT *, VALUEEND@end smallexampleThe above program, when run, prints:@smallexample 154@end smallexample@xref{Char Intrinsic}, for the inverse of the @code{@0@} function.@xref{IAChar Intrinsic}, for the function correspondingto the ASCII character set.")DEFDOC (ACOS, "Arc cosine.", "\Returns the arc-cosine (inverse cosine) of @var{@1@}in radians.@xref{Cos Intrinsic}, for the inverse of this function.")DEFDOC (DACOS, "Arc cosine (archaic).", ARCHAIC (ACOS, ACos))DEFDOC (AIMAG, "Convert/extract imaginary part of complex.", "\Returns the (possibly converted) imaginary part of @var{@1@}.Use of @code{@0@()} with an argument of a typeother than @code{COMPLEX(KIND=1)} is restricted to the following case:@exampleREAL(AIMAG(@1@))@end example@noindentThis expression converts the imaginary part of @1@ to@code{REAL(KIND=1)}.@xref{REAL() and AIMAG() of Complex}, for more information.")DEFDOC (DIMAG, "Convert/extract imaginary part of complex (archaic).", ARCHAIC (AIMAG, AImag))DEFDOC (AINT, "Truncate to whole number.", "\Returns @var{@1@} with the fractional portion of itsmagnitude truncated and its sign preserved.(Also called ``truncation towards zero''.)@xref{ANInt Intrinsic}, for how to round to nearestwhole number.@xref{Int Intrinsic}, for how to truncate and then convertnumber to @code{INTEGER}.")DEFDOC (DINT, "Truncate to whole number (archaic).", ARCHAIC (AINT, AInt))DEFDOC (INT, "Convert to @code{INTEGER} value truncated@99@to whole number.", "\Returns @var{@1@} with the fractional portion of itsmagnitude truncated and its sign preserved, convertedto type @code{INTEGER(KIND=1)}.If @var{@1@} is type @code{COMPLEX}, its real part istruncated and converted, and its imaginary part is disregarded.@xref{NInt Intrinsic}, for how to convert, rounded to nearestwhole number.@xref{AInt Intrinsic}, for how to truncate to whole numberwithout converting.")DEFDOC (IDINT, "Convert to @code{INTEGER} value truncated@99@to whole number (archaic).", ARCHAIC (INT, Int))DEFDOC (ANINT, "Round to nearest whole number.", "\Returns @var{@1@} with the fractional portion of itsmagnitude eliminated by rounding to the nearest wholenumber and with its sign preserved.A fractional portion exactly equal to@samp{.5} is rounded to the whole number thatis larger in magnitude.(Also called ``Fortran round''.)@xref{AInt Intrinsic}, for how to truncate towhole number.@xref{NInt Intrinsic}, for how to round and then convertnumber to @code{INTEGER}.")DEFDOC (DNINT, "Round to nearest whole number (archaic).", ARCHAIC (ANINT, ANInt))DEFDOC (NINT, "Convert to @code{INTEGER} value rounded@99@to nearest whole number.", "\Returns @var{@1@} with the fractional portion of itsmagnitude eliminated by rounding to the nearest wholenumber and with its sign preserved, convertedto type @code{INTEGER(KIND=1)}.If @var{@1@} is type @code{COMPLEX}, its real part isrounded and converted.A fractional portion exactly equal to@samp{.5} is rounded to the whole number thatis larger in magnitude.(Also called ``Fortran round''.)@xref{Int Intrinsic}, for how to convert, truncate towhole number.@xref{ANInt Intrinsic}, for how to round to nearest whole numberwithout converting.")DEFDOC (IDNINT, "Convert to @code{INTEGER} value rounded@99@to nearest whole number (archaic).", ARCHAIC (NINT, NInt))DEFDOC (LOG, "Natural logarithm.", "\Returns the natural logarithm of @var{@1@}, which mustbe greater than zero or, if type @code{COMPLEX}, must notbe zero.@xref{Exp Intrinsic}, for the inverse of this function.@xref{Log10 Intrinsic}, for the `common' (base-10) logarithm function.")DEFDOC (ALOG, "Natural logarithm (archaic).", ARCHAIC (LOG, Log))DEFDOC (CLOG, "Natural logarithm (archaic).", ARCHAIC (LOG, Log))DEFDOC (DLOG, "Natural logarithm (archaic).", ARCHAIC (LOG, Log))DEFDOC (CDLOG, "Natural logarithm (archaic).", ARCHAIC (LOG, Log))DEFDOC (LOG10, "Common logarithm.", "\Returns the common logarithm (base 10) of @var{@1@}, which mustbe greater than zero.The inverse of this function is @samp{10. ** LOG10(@var{@1@})}.@xref{Log Intrinsic}, for the natural logarithm function.")DEFDOC (ALOG10, "Common logarithm (archaic).", ARCHAIC (LOG10, Log10))DEFDOC (DLOG10, "Common logarithm (archaic).", ARCHAIC (LOG10, Log10))DEFDOC (MAX, "Maximum value.", "\Returns the argument with the largest value.@xref{Min Intrinsic}, for the opposite function.")DEFDOC (AMAX0, "Maximum value (archaic).", "\Archaic form of @code{MAX()} that is specificto one type for @var{@1@} and a different return type.@xref{Max Intrinsic}.")DEFDOC (AMAX1, "Maximum value (archaic).", ARCHAIC (MAX, Max))DEFDOC (DMAX1, "Maximum value (archaic).", ARCHAIC (MAX, Max))DEFDOC (MAX0, "Maximum value (archaic).", ARCHAIC (MAX, Max))DEFDOC (MAX1, "Maximum value (archaic).", "\Archaic form of @code{MAX()} that is specificto one type for @var{@1@} and a different return type.@xref{Max Intrinsic}.")DEFDOC (MIN, "Minimum value.", "\Returns the argument with the smallest value.@xref{Max Intrinsic}, for the opposite function.")DEFDOC (AMIN0, "Minimum value (archaic).", "\Archaic form of @code{MIN()} that is specificto one type for @var{@1@} and a different return type.@xref{Min Intrinsic}.")DEFDOC (AMIN1, "Minimum value (archaic).", ARCHAIC (MIN, Min))DEFDOC (DMIN1, "Minimum value (archaic).", ARCHAIC (MIN, Min))DEFDOC (MIN0, "Minimum value (archaic).", ARCHAIC (MIN, Min))DEFDOC (MIN1, "Minimum value (archaic).", "\Archaic form of @code{MIN()} that is specificto one type for @var{@1@} and a different return type.@xref{Min Intrinsic}.")DEFDOC (MOD, "Remainder.", "\Returns remainder calculated as:@smallexample@var{@1@} - (INT(@var{@1@} / @var{@2@}) * @var{@2@})@end smallexample@var{@2@} must not be zero.")DEFDOC (AMOD, "Remainder (archaic).", ARCHAIC (MOD, Mod))DEFDOC (DMOD, "Remainder (archaic).", ARCHAIC (MOD, Mod))DEFDOC (AND, "Boolean AND.", "\Returns value resulting from boolean AND ofpair of bits in each of @var{@1@} and @var{@2@}.")DEFDOC (IAND, "Boolean AND.", "\Returns value resulting from boolean AND ofpair of bits in each of @var{@1@} and @var{@2@}.")DEFDOC (OR, "Boolean OR.", "\Returns value resulting from boolean OR ofpair of bits in each of @var{@1@} and @var{@2@}.")DEFDOC (IOR, "Boolean OR.", "\Returns value resulting from boolean OR ofpair of bits in each of @var{@1@} and @var{@2@}.")DEFDOC (XOR, "Boolean XOR.", "\Returns value resulting from boolean exclusive-OR ofpair of bits in each of @var{@1@} and @var{@2@}.")DEFDOC (IEOR, "Boolean XOR.", "\Returns value resulting from boolean exclusive-OR ofpair of bits in each of @var{@1@} and @var{@2@}.")DEFDOC (NOT, "Boolean NOT.", "\Returns value resulting from boolean NOT of each bitin @var{@1@}.")DEFDOC (ASIN, "Arc sine.", "\Returns the arc-sine (inverse sine) of @var{@1@}in radians.@xref{Sin Intrinsic}, for the inverse of this function.")DEFDOC (DASIN, "Arc sine (archaic).", ARCHAIC (ASIN, ASin))DEFDOC (ATAN, "Arc tangent.", "\Returns the arc-tangent (inverse tangent) of @var{@1@}in radians.@xref{Tan Intrinsic}, for the inverse of this function.")DEFDOC (DATAN, "Arc tangent (archaic).", ARCHAIC (ATAN, ATan))DEFDOC (ATAN2, "Arc tangent.", "\Returns the arc-tangent (inverse tangent) of the complexnumber (@var{@1@}, @var{@2@}) in radians.@xref{Tan Intrinsic}, for the inverse of this function.")DEFDOC (DATAN2, "Arc tangent (archaic).", ARCHAIC_2 (ATAN2, ATan2))DEFDOC (BIT_SIZE, "Number of bits in argument's type.", "\Returns the number of bits (integer precision plus sign bit)represented by the type for @var{@1@}.@xref{BTest Intrinsic}, for how to test the value of abit in a variable or array.@xref{IBSet Intrinsic}, for how to set a bit in a variable to 1.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -