Inline a pointless function

This commit is contained in:
sfan5 2023-09-01 12:26:43 +02:00
parent dd3a34d674
commit ddecc0fae2
2 changed files with 2 additions and 5 deletions

@ -50,9 +50,6 @@ namespace os
u64 Byteswap::byteswap(u64 num) {return bswap_64(num);}
s64 Byteswap::byteswap(s64 num) {return bswap_64(num);}
f32 Byteswap::byteswap(f32 num) {u32 tmp=IR(num); tmp=bswap_32(tmp); return (FR(tmp));}
// prevent accidental byte swapping of chars
u8 Byteswap::byteswap(u8 num) {return num;}
c8 Byteswap::byteswap(c8 num) {return num;}
}
}

@ -26,8 +26,8 @@ namespace os
static s64 byteswap(s64 num);
static f32 byteswap(f32 num);
// prevent accidental swapping of chars
static u8 byteswap(u8 num);
static c8 byteswap(c8 num);
static inline u8 byteswap(u8 num) { return num; }
static inline c8 byteswap(c8 num) { return num; }
};
class Printer