diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-25 19:24:38 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-25 20:35:03 +0100 |
| commit | a984eb367c032dbe2577f01238c3d1268526be70 (patch) | |
| tree | 437fef40379b2758b129ccea39df3570fa2d145e /include/arch/x86_64/linux/coff.h | |
| parent | 8834571b202cf4dc9c649cfb096c213b6ecf1566 (diff) | |
Clang-tidy fixes
Diffstat (limited to 'include/arch/x86_64/linux/coff.h')
| -rw-r--r-- | include/arch/x86_64/linux/coff.h | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/include/arch/x86_64/linux/coff.h b/include/arch/x86_64/linux/coff.h index c55e9e76..08eb9352 100644 --- a/include/arch/x86_64/linux/coff.h +++ b/include/arch/x86_64/linux/coff.h @@ -26,28 +26,22 @@ */ /* Load a short int from the following tables with little-endian formats */ -#define COFF_SHORT_L(ps) \ - ((short)(((unsigned short)((unsigned char)ps[1]) << 8) | \ - ((unsigned short)((unsigned char)ps[0])))) +#define COFF_SHORT_L(ps) \ + ((short)(((unsigned short)((unsigned char)ps[1]) << 8) | ((unsigned short)((unsigned char)ps[0])))) /* Load a long int from the following tables with little-endian formats */ -#define COFF_LONG_L(ps) \ - (((long)(((unsigned long)((unsigned char)ps[3]) << 24) | \ - ((unsigned long)((unsigned char)ps[2]) << 16) | \ - ((unsigned long)((unsigned char)ps[1]) << 8) | \ - ((unsigned long)((unsigned char)ps[0]))))) +#define COFF_LONG_L(ps) \ + (((long)(((unsigned long)((unsigned char)ps[3]) << 24) | ((unsigned long)((unsigned char)ps[2]) << 16) | \ + ((unsigned long)((unsigned char)ps[1]) << 8) | ((unsigned long)((unsigned char)ps[0]))))) /* Load a short int from the following tables with big-endian formats */ -#define COFF_SHORT_H(ps) \ - ((short)(((unsigned short)((unsigned char)ps[0]) << 8) | \ - ((unsigned short)((unsigned char)ps[1])))) +#define COFF_SHORT_H(ps) \ + ((short)(((unsigned short)((unsigned char)ps[0]) << 8) | ((unsigned short)((unsigned char)ps[1])))) /* Load a long int from the following tables with big-endian formats */ -#define COFF_LONG_H(ps) \ - (((long)(((unsigned long)((unsigned char)ps[0]) << 24) | \ - ((unsigned long)((unsigned char)ps[1]) << 16) | \ - ((unsigned long)((unsigned char)ps[2]) << 8) | \ - ((unsigned long)((unsigned char)ps[3]))))) +#define COFF_LONG_H(ps) \ + (((long)(((unsigned long)((unsigned char)ps[0]) << 24) | ((unsigned long)((unsigned char)ps[1]) << 16) | \ + ((unsigned long)((unsigned char)ps[2]) << 8) | ((unsigned long)((unsigned char)ps[3]))))) /* These may be overridden later by brain dead implementations which generate a big-endian header with little-endian data. In that case, generate a @@ -111,9 +105,8 @@ struct COFF_filehdr { #if 0 /* Perhaps, someday, these formats may be used. */ #define COFF_I386PTXMAGIC 0x154 #define COFF_I386AIXMAGIC 0x175 /* IBM's AIX system */ -#define COFF_I386BADMAG(x) \ - ((COFF_SHORT((x).f_magic) != COFF_I386MAGIC) && \ - COFF_SHORT((x).f_magic) != COFF_I386PTXMAGIC && \ +#define COFF_I386BADMAG(x) \ + ((COFF_SHORT((x).f_magic) != COFF_I386MAGIC) && COFF_SHORT((x).f_magic) != COFF_I386PTXMAGIC && \ COFF_SHORT((x).f_magic) != COFF_I386AIXMAGIC) #else #define COFF_I386BADMAG(x) (COFF_SHORT((x).f_magic) != COFF_I386MAGIC) @@ -288,7 +281,7 @@ union COFF_auxent { union { struct { /* if ISFCN, tag, or .bb */ char x_lnnoptr[4]; /* ptr to fcn line # */ - char x_endndx[4]; /* entry ndx past block end */ + char x_endndx[4]; /* entry ndx past block end */ } x_fcn; struct { /* if ISARY, up to 4 dimen. */ @@ -329,7 +322,7 @@ union COFF_auxent { char x_tvfill[4]; /* tv fill value */ char x_tvlen[2]; /* length of .tv */ char x_tvran[2][2]; /* tv range */ - } x_tv; /* info about .tv section (in auxent of symbol .tv)) */ + } x_tv; /* info about .tv section (in auxent of symbol .tv)) */ }; #define COFF_SYMENT struct COFF_syment |
