From f8fe5349802f2d73a70b0b7a190a3c7071efa0f4 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 27 Apr 2016 05:29:07 +0000 Subject: internal.h: adjust style git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 9 ++++++--- 1 file 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; -- cgit v1.2.3