Felix Fietkau
|
3c1b33b7d5
utils: add const_* byteswapping functions
|
пре 6 година |
Felix Fietkau
|
6eff829d78
utils: fix build error with g++
|
пре 6 година |
Felix Fietkau
|
ace64897d4
switch from typeof to the more portable __typeof__
|
пре 6 година |
Felix Fietkau
|
92009b7f98
utils: ensure that byte-order conversion functions evaluate the argument only once
|
пре 6 година |
Felix Fietkau
|
eebe3fcd2a
utils: use constant byte-order conversion
|
пре 6 година |
Stijn Tintel
|
632688e8d6
utils: nuke bitfield functions and macros
|
пре 7 година |
Felix Fietkau
|
3b6181b63d
utils: fix build on Mac OS X 10.12
|
пре 7 година |
Felix Fietkau
|
0fe13749d0
utils: add helper functions useful for allocating a ring buffer
|
пре 8 година |
Felix Fietkau
|
a8e70c6d36
add a base64 implementation (based on FreeBSD code)
|
пре 9 година |
Yousong Zhou
|
ad9aa180d3
utils: use clock_get_time() for clock_gettime() on Apple.
|
пре 9 година |
Felix Fietkau
|
9203927e58
utils: add a bitfield size macro
|
пре 10 година |
Felix Fietkau
|
4f44401ae8
utils: add __constructor and __hidden defines
|
пре 10 година |
Felix Fietkau
|
a2453456f2
utils.h: fix name collisions in __u_bswap16 with using "val" both inside the macro and as argument
|
пре 11 година |
Felix Fietkau
|
e5032709b2
utils: add bitfield inline ops
|
пре 11 година |
Felix Fietkau
|
bd47d85d38
utils: make le16 endian conversion functions work with arguments that have side effects
|
пре 11 година |
Felix Fietkau
|
fcd5ba8fbd
utils.h: make 16-bit little endian conversion robust against pointer subtraction arguments
|
пре 11 година |
Felix Fietkau
|
d01922625d
utils: add little-endian swap helpers
|
пре 11 година |
Felix Fietkau
|
e5a40544ec
utils: prefer using gccs builtin swapping functions which support constant folding
|
пре 11 година |
Felix Fietkau
|
5ad190fccf
utils: move endian swap helpers and __packed definition to utils.h
|
пре 11 година |
Felix Fietkau
|
aa4f3bde06
uloop: add a clock_gettime() implementation for mac os x
|
пре 12 година |
Felix Fietkau
|
7157c3a4df
utils: add BUILD_BUG_ON (similar to the one in the linux kernel)
|
пре 12 година |
Felix Fietkau
|
59000546c0
utils: make it unnecessary to specify the last NULL argument for calloc_a
|
пре 12 година |
Felix Fietkau
|
9c8ab5d64c
utils: move ARRAY_SIZE from uloop to utils.h
|
пре 12 година |
Felix Fietkau
|
d03a6a27c7
add utils.c, containing a calloc-like function to allocate multiple chunks with different sizes in one block and return pointers
|
пре 12 година |