summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-27 05:29:07 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-27 05:29:07 (GMT)
commitf8fe5349802f2d73a70b0b7a190a3c7071efa0f4 (patch)
tree55ec8585201c37af1a6a5cc5aa75256e0b3b0ffc /internal.h
parent3571995605834237587ae8ada2ae17e977d0d8d4 (diff)
internal.h: adjust style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/internal.h b/internal.h
index c04a0c3..9ca1fb3 100644
--- a/internal.h
+++ b/internal.h
@@ -292,7 +292,8 @@ rb_fix_mul_fix(VALUE x, VALUE y)
* Note that div may overflow fixnum.
*/
static inline void
-rb_fix_divmod_fix(VALUE a, VALUE b, VALUE *divp, VALUE *modp) {
+rb_fix_divmod_fix(VALUE a, VALUE b, VALUE *divp, VALUE *modp)
+{
/* assume / and % comply C99.
* ldiv(3) won't be inlined by GCC and clang.
* I expect / and % are compiled as single idiv.
@@ -319,7 +320,8 @@ rb_fix_divmod_fix(VALUE a, VALUE b, VALUE *divp, VALUE *modp) {
* This behaves different from C99 for negative arguments.
*/
static inline VALUE
-rb_fix_div_fix(VALUE x, VALUE y) {
+rb_fix_div_fix(VALUE x, VALUE y)
+{
VALUE div;
rb_fix_divmod_fix(x, y, &div, NULL);
return div;
@@ -329,7 +331,8 @@ rb_fix_div_fix(VALUE x, VALUE y) {
* This behaves different from C99 for negative arguments.
*/
static inline VALUE
-rb_fix_mod_fix(VALUE x, VALUE y) {
+rb_fix_mod_fix(VALUE x, VALUE y)
+{
VALUE mod;
rb_fix_divmod_fix(x, y, NULL, &mod);
return mod;