Skip to content

Commit

Permalink
run format
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-h committed Jul 10, 2024
1 parent a8de4b5 commit 1a451c2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion plugins/datatools/src/ParticleNeighborhoodGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void ParticleNeighborhoodGraph::calcData(geocalls::MultiParticleDataCall* data)
float bboxCentY = bboxCent.Y();
float bboxCentZ = bboxCent.Z();

#define _COORD(x, y, z) ((x) + ((y) + ((z) *y_size)) * x_size)
#define _COORD(x, y, z) ((x) + ((y) + ((z) * y_size)) * x_size)

std::vector<size_t> grid(d.get_count());
std::vector<size_t*> gridCell(x_size * y_size * z_size);
Expand Down
2 changes: 1 addition & 1 deletion plugins/protein_cuda/src/quicksurf/WKFThreads.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static void wkf_cpuid(unsigned int eax, unsigned int ecx, unsigned int* abcd) {
#if defined(_MSC_VER)
__cpuidex((int*) abcd, eax, ecx);
#else
// uint32_t ebx, edx;
// uint32_t ebx, edx;
unsigned int ebx = 0, edx = 0;
#if defined(__i386__) && defined(__PIC__)
/* in case of PIC under 32-bit EBX cannot be clobbered */
Expand Down
2 changes: 1 addition & 1 deletion vislib/include/vislib/math/AbstractMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ unsigned int AbstractMatrix<T, D, L, S>::FindEigenvalues(
*/
template<class T, unsigned int D, MatrixLayout L, class S>
T AbstractMatrix<T, D, L, S>::Determinant() const {
#define A(r, c) a[(r) *D + (c)]
#define A(r, c) a[(r) * D + (c)]
double a[D * D]; // input matrix for algorithm
double f; // Multiplication factor.
double max; // Row pivotising.
Expand Down
4 changes: 2 additions & 2 deletions vislib/include/vislib/math/AbstractMatrixImpl.h
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ Vector<T, D> AbstractMatrixImpl<T, D, L, S, C>::GetRow(const int row) const {
template<class T, unsigned int D, MatrixLayout L, class S,
template<class Tc, unsigned int Dc, MatrixLayout Lc, class Sc> class C>
bool AbstractMatrixImpl<T, D, L, S, C>::Invert() {
#define A(r, c) a[(r) *2 * D + (c)]
#define A(r, c) a[(r) * 2 * D + (c)]
double a[2 * D * D]; // input matrix for algorithm
double f; // Multiplication factor.
double max; // Row pivotising.
Expand Down Expand Up @@ -1382,7 +1382,7 @@ unsigned int AbstractMatrixImpl<T, D, L, S, C>::findEigenvaluesSym(
if (((outEigenvalues == NULL) && (outEigenvectors == NULL)) || (size == 0))
return 0;

#define A(r, c) a[(r) *D + (c)]
#define A(r, c) a[(r) * D + (c)]
double a[D * D]; // input matrix for algorithm
double d[D]; // diagonal elements
double e[D]; // off-diagonal elements
Expand Down
10 changes: 5 additions & 5 deletions vislib/src/sys/sysfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ bool vislib::sys::ReadTextFile(
} break;
case TEXTFF_UNICODE:
#ifdef _WIN32
CASE_TEXTFF_UNICODE :
CASE_TEXTFF_UNICODE:
#endif /* _WIN32 */
{
vislib::StringW tmp;
Expand Down Expand Up @@ -402,7 +402,7 @@ bool vislib::sys::ReadTextFile(
} break;
case TEXTFF_UNICODE:
#ifdef _WIN32
CASE_TEXTFF_UNICODE :
CASE_TEXTFF_UNICODE:
#endif /* _WIN32 */
{
wchar_t* src = outStr.AllocateBuffer(static_cast<unsigned int>((len / sizeof(wchar_t)) + sizeof(wchar_t)));
Expand Down Expand Up @@ -615,7 +615,7 @@ bool vislib::sys::WriteTextFile(
goto CASE_TEXTFF_ASCII;
break;
case TEXTFF_ASCII:
CASE_TEXTFF_ASCII : {
CASE_TEXTFF_ASCII: {
// no BOM possible
StringA::Size len = text.Length();
return (static_cast<StringA::Size>(file.Write(text.PeekBuffer(), len)) == len);
Expand Down Expand Up @@ -697,7 +697,7 @@ bool vislib::sys::WriteTextFile(
break;
case TEXTFF_UNICODE:
#ifdef _WIN32
CASE_TEXTFF_UNICODE :
CASE_TEXTFF_UNICODE:
#endif /* _WIN32 */
{
#ifdef _WIN32
Expand All @@ -710,7 +710,7 @@ bool vislib::sys::WriteTextFile(
return (static_cast<StringW::Size>(file.Write(text.PeekBuffer(), len)) == len);
} break;
case TEXTFF_UTF8:
CASE_TEXTFF_UTF8 : {
CASE_TEXTFF_UTF8: {
vislib::StringA bytes;
UTF8Encoder::Encode(bytes, text);
if (bom != TEXTFF_BOM_NO) {
Expand Down

0 comments on commit 1a451c2

Please sign in to comment.