diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-27 05:29:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-27 05:29:07 +0000 |
commit | 9c8faf66b8aee9ed7564b930251e57f782fbf684 (patch) | |
tree | 55ec8585201c37af1a6a5cc5aa75256e0b3b0ffc | |
parent | 95ebb4bd812c69c727be35f96a9553a92c6dfba2 (diff) | |
download | ruby-9c8faf66b8aee9ed7564b930251e57f782fbf684.tar.gz |
internal.h: adjust style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | internal.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/internal.h b/internal.h index c04a0c36e3..9ca1fb388c 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; |