diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 07:52:39 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-24 07:52:39 +0000 |
| commit | 71dfb2e4b64281e591a3c0fd0e64bb0600317644 (patch) | |
| tree | 977f6decc33f1d863a87d6714b026e8df912dd4c /numeric.c | |
| parent | 115f79a12e159f2c470d4b77d6b925613ea63fba (diff) | |
| download | ruby-71dfb2e4b64281e591a3c0fd0e64bb0600317644.tar.gz ruby-71dfb2e4b64281e591a3c0fd0e64bb0600317644.tar.xz ruby-71dfb2e4b64281e591a3c0fd0e64bb0600317644.zip | |
enable several rdoc.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
| -rw-r--r-- | numeric.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -2081,6 +2081,10 @@ fix_minus(VALUE x, VALUE y) } } +#define SQRT_LONG_MAX ((SIGNED_VALUE)1<<((SIZEOF_LONG*CHAR_BIT-1)/2)) +/*tests if N*N would overflow*/ +#define FIT_SQRT_LONG(n) (((n)<SQRT_LONG_MAX)&&((n)>=-SQRT_LONG_MAX)) + /* * call-seq: * fix * numeric => numeric_result @@ -2090,10 +2094,6 @@ fix_minus(VALUE x, VALUE y) * result. */ -#define SQRT_LONG_MAX ((SIGNED_VALUE)1<<((SIZEOF_LONG*CHAR_BIT-1)/2)) -/*tests if N*N would overflow*/ -#define FIT_SQRT_LONG(n) (((n)<SQRT_LONG_MAX)&&((n)>=-SQRT_LONG_MAX)) - static VALUE fix_mul(VALUE x, VALUE y) { |
