1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-28 07:51:19 +01:00
Marian Buschsieweke e14b309c42
sys/byteorder: clean up implementation
This changes the implementation to be solely build upon `endian.h`
and `unaligned.h`.

This turns `byteorder.h` basically in syntactic sugar on top of the
`<endian.h>` API, reducing the complexity of the implementation and,
hence, the maintenance effort.

Note that yields a small ROM reduction as well *yeah!*

```
make BOARD=nrf52840dk RIOT_CI_BUILD=1 BUILD_IN_DOCKER=1 -C tests/unittests
```

Yields before this commit:

```
   text	  data	   bss	   dec	   hex	filename
 417788	  2200	 28640	448628	 6d874	/data/riotbuild/riotbase/tests/unittests/bin/nrf52840dk/tests_unittests.elf
```

And with this commit:

```
   text	  data	   bss	   dec	   hex	filename
 417756	  2200	 28640	448596	 6d854	/data/riotbuild/riotbase/tests/unittests/bin/nrf52840dk/tests_unittests.elf
```
2024-02-01 18:24:40 +01:00
..
2022-03-11 09:24:12 +01:00
2023-10-18 13:22:44 +02:00
2023-06-05 13:00:23 +02:00
2024-01-17 16:05:12 +01:00
2023-05-24 09:53:33 +02:00
2023-10-06 18:21:34 +02:00
2023-12-21 12:02:19 +01:00
2024-01-31 20:14:46 +01:00
2023-05-24 09:53:35 +02:00
2024-01-17 16:05:12 +01:00
2023-12-21 12:02:19 +01:00
2021-11-24 17:54:44 +01:00
2024-01-17 16:05:12 +01:00
2024-01-17 16:05:12 +01:00
2023-08-31 14:38:49 +02:00
2023-08-31 14:38:49 +02:00
2023-08-31 14:38:49 +02:00