GMP大数库开源源代码


GMP大数库,高精度大数运算的神器,有兴趣的朋友还可以研究代码,全部都是模拟运算,非常精巧,值得学习。
资源截图
代码片段和文件信息
/* Copyright (C) 1989 2000 Aladdin Enterprises.  All rights reserved. */

/*$Id$*/
/* Convert ANSI C function definitions to K&R (“traditional C“) syntax */

/*
ansi2knr is distributed in the hope that it will be useful but WITHOUT ANY
WARRANTY.  No author or distributor accepts responsibility to anyone for the
consequences of using it or for whether it serves any particular purpose or
works at all unless he says so in writing.  Refer to the GNU General Public
License (the “GPL“) for full details.

Everyone is granted permission to copy modify and redistribute ansi2knr
but only under the conditions described in the GPL.  A copy of this license
is supposed to have been given to you along with ansi2knr so you can know
your rights and responsibilities.  It should be in a file named COPYLEFT
or if there is no file named COPYLEFT a file named COPYING.  Among other
things the copyright notice and this notice must be preserved on all
copies.

We explicitly state here what we believe is already implied by the GPL: if
the ansi2knr program is distributed as a separate set of sources and a
separate executable file which are aggregated on a storage medium together
with another program this in itself does not bring the other program under
the GPL nor does the mere fact that such a program or the procedures for
constructing it invoke the ansi2knr executable bring any other part of the
program under the GPL.
*/

/*
 * Usage:
ansi2knr [--filename FILENAME] [INPUT_FILE [OUTPUT_FILE]]
 * --filename provides the file name for the #line directive in the output
 * overriding input_file (if present).
 * If no input_file is supplied input is read from stdin.
 * If no output_file is supplied output goes to stdout.
 * There are no error messages.
 *
 * ansi2knr recognizes function definitions by seeing a non-keyword
 * identifier at the left margin followed by a left parenthesis with a
 * right parenthesis as the last character on the line and with a left
 * brace as the first token on the following line (ignoring possible
 * intervening comments and/or preprocessor directives) except that a line
 * consisting of only
 * identifier1(identifier2)
 * will not be considered a function definition unless identifier2 is
 * the word “void“ and a line consisting of
 * identifier1(identifier2 <>)
 * will not be considered a function definition.
 * ansi2knr will recognize a multi-line header provided that no intervening
 * line ends with a left or right brace or a semicolon.  These algorithms
 * ignore whitespace comments and preprocessor directives except that
 * the function name must be the first thing on the line.  The following
 * constructs will confuse it:
 * - Any other construct that starts at the left margin and
 *     follows the above syntax (such as a macro or function call).
 * - Some macros that tinker with the syntax of function headers.
 */

/*
 * The original and principal author of ansi2knr is L. Peter Deutsch
 * 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)