summaryrefslogtreecommitdiff
path: root/yjit_utils.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-09-29 14:58:01 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:41 -0400
commita10cf74e5c727cce2612958dca1c5ac6ece1a098 (patch)
treed0bb0cceb8b5b92adfe8edcd124c4a0211ff1cbd /yjit_utils.c
parent5b68d14c2fcacc2f185a1933ce9b102cb06b1ba5 (diff)
style: align pointer "*" to the right
Diffstat (limited to 'yjit_utils.c')
-rw-r--r--yjit_utils.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/yjit_utils.c b/yjit_utils.c
index 4e764f0aea..57bd027b89 100644
--- a/yjit_utils.c
+++ b/yjit_utils.c
@@ -5,7 +5,7 @@
#include "yjit_asm.h"
// Save caller-save registers on the stack before a C call
-void push_regs(codeblock_t* cb)
+void push_regs(codeblock_t *cb)
{
push(cb, RAX);
push(cb, RCX);
@@ -20,7 +20,7 @@ void push_regs(codeblock_t* cb)
}
// Restore caller-save registers from the after a C call
-void pop_regs(codeblock_t* cb)
+void pop_regs(codeblock_t *cb)
{
popfq(cb);
pop(cb, R11);
@@ -39,7 +39,7 @@ static void print_int_cfun(int64_t val)
fprintf(stderr, "%lld\n", (long long int)val);
}
-void print_int(codeblock_t* cb, x86opnd_t opnd)
+void print_int(codeblock_t *cb, x86opnd_t opnd)
{
push_regs(cb);
@@ -55,12 +55,12 @@ void print_int(codeblock_t* cb, x86opnd_t opnd)
pop_regs(cb);
}
-static void print_ptr_cfun(void* val)
+static void print_ptr_cfun(void *val)
{
fprintf(stderr, "%p\n", val);
}
-void print_ptr(codeblock_t* cb, x86opnd_t opnd)
+void print_ptr(codeblock_t *cb, x86opnd_t opnd)
{
assert (opnd.num_bits == 64);
@@ -73,13 +73,13 @@ void print_ptr(codeblock_t* cb, x86opnd_t opnd)
pop_regs(cb);
}
-static void print_str_cfun(const char* str)
+static void print_str_cfun(const char *str)
{
fprintf(stderr, "%s\n", str);
}
// Print a constant string to stdout
-void print_str(codeblock_t* cb, const char* str)
+void print_str(codeblock_t *cb, const char *str)
{
//as.comment("printStr(\"" ~ str ~ "\")");
size_t len = strlen(str);