1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +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
..
2023-01-13 13:58:07 +01:00
2022-09-14 15:05:25 +02:00
2022-09-23 16:42:52 +02:00
2023-04-26 00:53:14 +02:00
2023-02-23 16:44:24 +01:00
2022-09-14 15:05:25 +02:00
2024-01-17 16:05:12 +01:00
2024-01-17 16:05:12 +01:00
2021-12-15 12:41:36 +01:00
2023-01-13 13:58:07 +01:00
2024-01-31 20:14:46 +01:00
2023-10-06 18:21:34 +02:00
2022-12-19 13:03:45 +01:00
2021-08-13 19:50:38 +02:00
2023-06-05 19:09:11 +02:00
2023-01-13 13:58:07 +01:00
2021-12-07 13:00:58 +01:00
2023-02-27 12:31:03 +01:00
2021-08-13 19:50:38 +02:00
2022-11-22 13:39:35 +01:00
2023-05-26 15:04:36 +02:00
2023-12-21 15:53:04 -05:00
2023-05-30 20:39:10 +02:00
2021-12-06 11:53:59 +01:00
2023-05-31 12:55:53 +02:00
2022-02-12 18:30:58 +01:00
2021-08-13 19:50:38 +02:00
2023-08-08 09:09:12 +02:00
2022-08-03 22:09:21 +02:00
2023-05-30 17:32:48 +02:00
2023-03-16 12:09:46 +00:00