Browse files

Remove trailing white spaces

  • Loading branch information...
1 parent 6ea381d commit 2cefd37449020702f2ce696241affd00e912990f @ryoqun committed May 9, 2012
View
4 vm/builtin/bignum.cpp
@@ -189,7 +189,7 @@ namespace rubinius {
}
for(; i < l2; i++) {
- DIGIT(n,i) = (sign == MP_ZPOS) ?
+ DIGIT(n,i) = (sign == MP_ZPOS) ?
DIGIT(d2,i) :
(~DIGIT(d2,i) & (DIGIT_RADIX-1));
}
@@ -1106,7 +1106,7 @@ namespace rubinius {
for(int i = sz - 1; i >= 0; i--) {
Integer* tmp = big->left_shift(state, Fixnum::from(32));
- big = tmp->fixnum_p() ?
+ big = tmp->fixnum_p() ?
Bignum::from(state, tmp->to_native()) :
as<Bignum>(tmp);
View
2 vm/builtin/fixnum.cpp
@@ -133,7 +133,7 @@ namespace rubinius {
native_int denominator = other->to_native();
native_int quotient = div(state, other)->to_native();
native_int modulo = numerator - denominator * quotient;
-
+
if((modulo < 0 && denominator > 0) || (modulo > 0 && denominator < 0)) {
return Fixnum::from(modulo + denominator);
} else {
View
2 vm/builtin/iseq.cpp
@@ -8,7 +8,7 @@
namespace rubinius {
void InstructionSequence::init(STATE) {
- GO(iseq).set(ontology::new_class(state,
+ GO(iseq).set(ontology::new_class(state,
"InstructionSequence", G(object), G(rubinius)));
G(iseq)->set_object_type(state, InstructionSequenceType);
}
View
2 vm/builtin/object.cpp
@@ -160,7 +160,7 @@ namespace rubinius {
if(reference_p() && is_frozen_p()) return cTrue;
return cFalse;
}
-
+
void Object::check_frozen(STATE) {
if(frozen_p(state) == cTrue) {
const char* reason = "can't modify frozen object";
View
2 vm/builtin/time.cpp
@@ -93,7 +93,7 @@ namespace rubinius {
return tm;
}
- Time* Time::from_array(STATE, Object* self,
+ Time* Time::from_array(STATE, Object* self,
Fixnum* sec, Fixnum* min, Fixnum* hour,
Fixnum* mday, Fixnum* mon, Fixnum* year, Fixnum* nsec,
Fixnum* isdst, Object* from_gmt, Object* offset,
View
2 vm/bytecode_verification.cpp
@@ -69,7 +69,7 @@ namespace rubinius {
// FIXME
//
// This is conditional because in 1.8 mode, CM's for blocks have arity
- // info that isn't used, but therefore fails these checks because
+ // info that isn't used, but therefore fails these checks because
// of the way 'for' works.
//
// FIXME
View
2 vm/environment.cpp
@@ -193,7 +193,7 @@ namespace rubinius {
}
// print out all the frames to stderr
- static const char header[] =
+ static const char header[] =
"Rubinius Crash Report #rbxcrashreport\n\n"
"Error: signal ";
View
4 vm/ffi_util.cpp
@@ -70,8 +70,8 @@ void *ffi_read_pointer(void **ptr) {
return *ptr;
}
-void *ffi_add_ptr(char *ptr, int offset) {
- return (void*)(ptr + offset);
+void *ffi_add_ptr(char *ptr, int offset) {
+ return (void*)(ptr + offset);
}
int ffi_type_size(int type) {
View
2 vm/llvm/inline.cpp
@@ -165,7 +165,7 @@ namespace rubinius {
Value* rt_rd = ops_.constant(rd, ops_.state()->ptr_type("jit::RuntimeData"));
// cm
- Value* rd_method =
+ Value* rd_method =
ops_.b().CreateBitCast(
ops_.b().CreateLoad(
ops_.b().CreateConstGEP2_32(rt_rd, 0, offset::runtime_data_method, "method_pos"),
View
2 vm/llvm/inline_primitive.cpp
@@ -412,7 +412,7 @@ namespace rubinius {
i.context().leave_inline();
}
- void float_op(MathOperation op) {
+ void float_op(MathOperation op) {
log("float_op");
i.context().enter_inline();
View
2 vm/llvm/jit_compiler.hpp
@@ -17,7 +17,7 @@ namespace rubinius {
class JITMethodInfo;
class VMMethod;
class BackgroundCompileRequest;
-
+
namespace jit {
class Context;
View
2 vm/test/test_channel.hpp
@@ -50,7 +50,7 @@ class TestChannel : public CxxTest::TestSuite, public VMTest {
TS_ASSERT_EQUALS(lst->size(), 0U);
}
- void compare_interval_in_range(struct timeval start, struct timeval finish,
+ void compare_interval_in_range(struct timeval start, struct timeval finish,
suseconds_t tmin, suseconds_t tmax) {
time_t sec = finish.tv_sec - start.tv_sec;
suseconds_t actual = sec * 1000000 - start.tv_usec + finish.tv_usec;
View
2 vm/test/test_fixnum.hpp
@@ -527,7 +527,7 @@ class TestFixnum : public CxxTest::TestSuite, public VMTest {
}
void test_right_shift_moves_to_zero() {
- Integer* i = Fixnum::from(5)->right_shift(state,
+ Integer* i = Fixnum::from(5)->right_shift(state,
Fixnum::from(sizeof(native_int) * 8));
TS_ASSERT_EQUALS(i, Fixnum::from(0));
}
View
6 vm/test/test_list.hpp
@@ -39,7 +39,7 @@ class TestList : public CxxTest::TestSuite, public VMTest {
lst->append(state, one);
TS_ASSERT_EQUALS(lst->locate(state, 1), one);
TS_ASSERT_EQUALS(lst->size(), (size_t)2);
-
+
lst->append(state, two);
TS_ASSERT_EQUALS(lst->locate(state, 2), two);
TS_ASSERT_EQUALS(lst->size(), (size_t)3);
@@ -52,7 +52,7 @@ class TestList : public CxxTest::TestSuite, public VMTest {
TS_ASSERT_EQUALS(lst->shift(state), one);
TS_ASSERT_EQUALS(lst->size(), (size_t)1);
-
+
TS_ASSERT_EQUALS(lst->shift(state), two);
TS_ASSERT_EQUALS(lst->size(), (size_t)0);
}
@@ -66,7 +66,7 @@ class TestList : public CxxTest::TestSuite, public VMTest {
TS_ASSERT_EQUALS(lst->remove(state, one), (size_t)2);
TS_ASSERT_EQUALS(lst->size(), (size_t)2);
-
+
TS_ASSERT_EQUALS(lst->remove(state, two), (size_t)2);
TS_ASSERT_EQUALS(lst->size(), (size_t)0);
}
View
10 vm/util/murmur_hash3.cpp
@@ -114,9 +114,9 @@ void MurmurHash3_x86_32 ( const void * key, int len,
k1 *= c1;
k1 = ROTL32(k1,15);
k1 *= c2;
-
+
h1 ^= k1;
- h1 = ROTL32(h1,13);
+ h1 = ROTL32(h1,13);
h1 = h1*5+0xe6546b64;
}
@@ -143,7 +143,7 @@ void MurmurHash3_x86_32 ( const void * key, int len,
h1 = fmix(h1);
*(uint32_t*)out = h1;
-}
+}
//-----------------------------------------------------------------------------
@@ -158,9 +158,9 @@ void MurmurHash3_x86_128 ( const void * key, const int len,
uint32_t h3 = seed;
uint32_t h4 = seed;
- uint32_t c1 = 0x239b961b;
+ uint32_t c1 = 0x239b961b;
uint32_t c2 = 0xab0e9789;
- uint32_t c3 = 0x38b34ae5;
+ uint32_t c3 = 0x38b34ae5;
uint32_t c4 = 0xa1e38b93;
//----------
View
2 vm/util/thread.hpp
@@ -151,7 +151,7 @@ namespace thread {
if(err != 0) {
if(err == EDEADLK) {
std::cout << "Thread deadlock in ::join()!\n";
- abort();
+ abort();
}
// Ignore the other errors, since they mean there is no thread
View
2 vm/vmmethod.cpp
@@ -689,7 +689,7 @@ namespace rubinius {
// If +disable+ is set, then the method is tagged as not being
// available for JIT.
void VMMethod::deoptimize(STATE, CompiledMethod* original,
- jit::RuntimeDataHolder* rd,
+ jit::RuntimeDataHolder* rd,
bool disable)
{
#ifdef ENABLE_LLVM

0 comments on commit 2cefd37

Please sign in to comment.