Skip to content

Commit

Permalink
Fix source format non-compliance.
Browse files Browse the repository at this point in the history
  • Loading branch information
AssadHashmi committed Apr 3, 2024
1 parent 55642e2 commit fa892a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions core/unix/signal_linux_aarch64.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ sigcontext_to_mcontext_simd(priv_mcontext_t *mc, sig_full_cxt_t *sc_full)
memcpy(&mc->simd[i].q, &fpc->vregs[i], sizeof(mc->simd->q));
}

# ifndef DR_HOST_NOT_TARGET
#ifndef DR_HOST_NOT_TARGET
if (proc_has_feature(FEATURE_SVE)) {
size_t offset = sizeof(struct fpsimd_context);
/* fpsimd_context is always the first section. After that the esr_context,
Expand Down Expand Up @@ -274,7 +274,7 @@ sigcontext_to_mcontext_simd(priv_mcontext_t *mc, sig_full_cxt_t *sc_full)
next_head = (struct _aarch64_ctx *)(sc_full->sc->__reserved + offset);
}
}
# endif
#endif
}

void
Expand All @@ -299,7 +299,7 @@ mcontext_to_sigcontext_simd(sig_full_cxt_t *sc_full, priv_mcontext_t *mc)
memcpy(&fpc->vregs[i], &mc->simd[i].u32[0], sizeof(fpc->vregs[i]));
}

# ifndef DR_HOST_NOT_TARGET
#ifndef DR_HOST_NOT_TARGET
if (proc_has_feature(FEATURE_SVE)) {
struct _aarch64_ctx *esr = (void *)((byte *)fpc + sizeof(struct fpsimd_context));
esr->magic = ESR_MAGIC;
Expand Down Expand Up @@ -327,7 +327,7 @@ mcontext_to_sigcontext_simd(sig_full_cxt_t *sc_full, priv_mcontext_t *mc)
null->magic = 0;
null->size = 0;
}
# endif
#endif
}

size_t
Expand Down
4 changes: 2 additions & 2 deletions suite/tests/tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ dump_ucontext(ucontext_t *ucxt, bool is_sve, int vl_bytes)
}
print("\n");

# ifndef DR_HOST_NOT_TARGET
# ifndef DR_HOST_NOT_TARGET
if (is_sve) {
size_t offset = sizeof(struct fpsimd_context);
struct _aarch64_ctx *next_head =
Expand Down Expand Up @@ -601,7 +601,7 @@ dump_ucontext(ucontext_t *ucxt, bool is_sve, int vl_bytes)
next_head = (struct _aarch64_ctx *)(ucxt->uc_mcontext.RESERVED + offset);
}
}
# endif
# endif
}
# endif

Expand Down

0 comments on commit fa892a7

Please sign in to comment.