From 38764943e5fc61c424c018068dc7f6790dddf147 Mon Sep 17 00:00:00 2001 From: Paul Oliver Date: Thu, 29 Feb 2024 02:29:14 +0100 Subject: Format repass. --- src/instset.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'src/instset.c') diff --git a/src/instset.c b/src/instset.c index 2ab127a..94c3df7 100644 --- a/src/instset.c +++ b/src/instset.c @@ -4,15 +4,17 @@ boolean sal_is_inst(uint32 word) { - /* Test if a given 32 bit integer contains a valid Salis instruction. + /* + * Test if a given 32 bit integer contains a valid Salis instruction. */ return word < INST_COUNT; } static boolean is_in_between(uint32 inst, uint32 low, uint32 hi) { - /* Test whether a Salis instruction lies within a given range. This is - useful for identifying template instructions and/or register modifiers. + /* + * Test whether a Salis instruction lies within a given range. This is + * useful for identifying template instructions and/or register modifiers. */ assert(sal_is_inst(inst)); assert(sal_is_inst(low)); @@ -22,8 +24,9 @@ static boolean is_in_between(uint32 inst, uint32 low, uint32 hi) boolean sal_is_template(uint32 inst) { - /* Test whether a given instruction is a template element - (i.e. NOP0 or NOP1). + /* + * Test whether a given instruction is a template element (i.e. NOP0 or + * NOP1). */ assert(sal_is_inst(inst)); return is_in_between(inst, NOP0, NOP1); @@ -31,8 +34,9 @@ boolean sal_is_template(uint32 inst) boolean sal_is_mod(uint32 inst) { - /* Test whether a given instruction is a register modifier - (i.e. MODA, MODB, MODC or MODD). + /* + * Test whether a given instruction is a register modifier (i.e. MODA, MODB, + * MODC or MODD). */ assert(sal_is_inst(inst)); return is_in_between(inst, MODA, MODD); -- cgit v1.2.1