chore(library/blast,runtime/cpp): fix style
This commit is contained in:
parent
5028d794ce
commit
b7271c39af
3 changed files with 2 additions and 2 deletions
|
@ -4,6 +4,7 @@ Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
|
|
||||||
Author: Leonardo de Moura
|
Author: Leonardo de Moura
|
||||||
*/
|
*/
|
||||||
|
#include <string>
|
||||||
#include "library/kernel_serializer.h"
|
#include "library/kernel_serializer.h"
|
||||||
#include "library/blast/context.h"
|
#include "library/blast/context.h"
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,5 @@ Author: Leonardo de Moura
|
||||||
namespace lean {
|
namespace lean {
|
||||||
namespace blast {
|
namespace blast {
|
||||||
class state {
|
class state {
|
||||||
|
|
||||||
};
|
};
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -68,7 +68,7 @@ void * alloc_obj(unsigned n) {
|
||||||
|
|
||||||
obj_cell::obj_cell(unsigned cidx, unsigned sz, obj const * fs):
|
obj_cell::obj_cell(unsigned cidx, unsigned sz, obj const * fs):
|
||||||
m_rc(0), m_kind(static_cast<unsigned>(obj_kind::Constructor)), m_size(sz), m_cidx(cidx) {
|
m_rc(0), m_kind(static_cast<unsigned>(obj_kind::Constructor)), m_size(sz), m_cidx(cidx) {
|
||||||
static_assert(sizeof(obj_cell) % sizeof(void*) == 0); // make sure the hack used to store obj_cell fields satisfies alignment constraints.
|
static_assert(sizeof(obj_cell) % sizeof(void*) == 0); // make sure the hack used to store obj_cell fields satisfies alignment constraints. // NOLINT
|
||||||
void ** mem = field_addr();
|
void ** mem = field_addr();
|
||||||
for (unsigned i = 0; i < sz; i++, mem++)
|
for (unsigned i = 0; i < sz; i++, mem++)
|
||||||
new (mem) obj(fs[i]);
|
new (mem) obj(fs[i]);
|
||||||
|
|
Loading…
Reference in a new issue