diff options
author | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-28 14:01:48 +0100 |
---|---|---|
committer | Wojtek Kosior <kwojtus@protonmail.com> | 2019-12-28 14:01:48 +0100 |
commit | f8c683a73dee4a7215a0cac31b3007723d07187a (patch) | |
tree | 6cf3ef02f0840e6540096358187babf149d90479 | |
parent | 826d5b3ba04a8b830c8a92a6f69ca4e223257c5b (diff) | |
download | rpi-MMU-example-f8c683a73dee4a7215a0cac31b3007723d07187a.tar.gz rpi-MMU-example-f8c683a73dee4a7215a0cac31b3007723d07187a.zip |
make uint32_to_bits() inline
-rw-r--r-- | strings.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3,7 +3,7 @@ #include <stdint.h> -void uint32_to_bits(uint32_t number, char *buf) +static inline void uint32_to_bits(uint32_t number, char *buf) { for (int i = 0; i < 32; i++) buf[i] = ((number >> (32 - i - 1)) & 1) ? '1' : '0'; |