misc: adjust formatting

This commit is contained in:
2026-03-12 20:34:31 +00:00
parent 3f21e888d6
commit 7d4cede788
5 changed files with 51 additions and 20 deletions

View File

@@ -16,11 +16,14 @@
causes garbage symbols to be generated.
*/
#define DEFINE(sym, val) \
asm volatile("\n.global " #sym "\n.type " #sym ", @object" "\n.set " #sym ", %a0" : : "i" (val))
#define DEFINE(sym, val) \
asm volatile("\n.global " #sym "\n.type " #sym \
", @object" \
"\n.set " #sym ", %a0" \
: \
: "i"(val))
#define OFFSET(sym, str, mem) \
DEFINE(sym, offsetof(str, mem))
#define OFFSET(sym, str, mem) DEFINE(sym, offsetof(str, mem))
static void __used common(void)
{