VM: Fixup cast formatting after clang-format

clang-format doesn't recognize casts to non-pointer/non-template types
so it winds up adding a space between the right paren and the expression
and then failing to recognize prefix operators in the process
(e.g. foo = (cell) & bar; should be foo = (cell)&bar;). This commit
manually fixes up the major cases (fixnum, cell, all types ending in _t).
db4
Erik Charlebois 2013-05-13 00:53:47 -04:00
parent 88d7c10d03
commit ffe41b3d7f
64 changed files with 259 additions and 259 deletions

View File

@ -15,12 +15,12 @@ __forceinline static bool cas(volatile fixnum* ptr, fixnum old_val,
}
__forceinline static cell fetch_add(volatile cell* ptr, cell val) {
return (cell)
InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr), (LONG) val);
return (cell)InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr),
(LONG) val);
}
__forceinline static fixnum fetch_add(volatile fixnum* ptr, fixnum val) {
return (fixnum)
InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr), (LONG) val);
return (fixnum)InterlockedExchangeAdd(reinterpret_cast<volatile LONG*>(ptr),
(LONG) val);
}
__forceinline static cell fetch_subtract(volatile cell* ptr, cell val) {

View File

@ -440,8 +440,8 @@ code_block* factor_vm::add_code_block(code_block_type type, cell code_,
block's instruction operands. In most cases this is done right after this
method returns, except when compiling words with the non-optimizing
compiler at the beginning of bootstrap */
this->code->uninitialized_blocks
.insert(std::make_pair(compiled, literals.value()));
this->code->uninitialized_blocks.insert(
std::make_pair(compiled, literals.value()));
this->code->all_blocks.insert((cell)compiled);
/* next time we do a minor GC, we have to trace this code block, since