summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 07:52:39 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 07:52:39 +0000
commite01c045a8b97de161ca74ddf417a58bb5b1e9424 (patch)
tree977f6decc33f1d863a87d6714b026e8df912dd4c /numeric.c
parenta3bfedac36e946790c966c0319765479df770e4b (diff)
enable several rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/numeric.c b/numeric.c
index cd49ec2..7881531 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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)
{