internal.h: adjust style
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3571995605
commit
f8fe534980
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user