Dmitry Muhomor
19a46e0f96
add helper functions for using u8 array as u4 array
2023-10-30 14:20:53 -04:00
Daniel Micay
d5f9909eca
add missing include
2023-06-10 14:58:20 -04:00
Daniel Micay
3e312695e1
document clz64/log2u64 not being able to handle 0
2022-01-16 16:28:49 -05:00
Daniel Micay
81cf2f27a0
calculate slab size class instead of array loop
2022-01-16 16:18:14 -05:00
Daniel Micay
d8cb2d9f7a
use consistent wrappers around clz/ffs
2022-01-16 15:39:59 -05:00
Daniel Micay
86f9c739ee
define constant for u64 bit width
2022-01-16 15:06:36 -05:00
Daniel Micay
536f852538
reuse a single size alignment implementation
2022-01-16 14:44:28 -05:00
Daniel Micay
c6af50d088
use unsigned for ffzl definition
...
This makes more sense and avoids clang tidy conversion warnings.
2022-01-03 01:29:12 -05:00
Daniel Micay
d8817417cc
use compiler extension instead of C11 noreturn
...
C11 noreturn isn't available in C++.
2021-11-23 16:00:06 -05:00
Daniel Micay
466d351e93
drop legacy glibc version check for pkey support
2020-03-29 11:40:12 -04:00
Daniel Micay
0436227092
no longer need glibc pthread_atfork workaround
2020-03-29 11:40:12 -04:00
Daniel Micay
d8ebdea05f
handle CONFIG_SEAL_METADATA option like the others
2019-08-18 01:56:20 -04:00
Daniel Micay
7acebaa837
overhaul glibc compatibility workarounds
2019-03-26 01:45:57 -04:00
Daniel Micay
fc8f2c3b60
move pthread_atfork wrapper to util header
2019-03-25 17:16:52 -04:00
Daniel Micay
b99ab8a47a
no need to artificially limit sealing to x86_64
2018-10-24 03:09:04 -04:00
Daniel Micay
0b963078d5
guard metadata with Memory Protection Keys (MPK)
2018-10-23 01:11:31 -04:00
Daniel Micay
fe30f6c2ea
delay allocating slab metadata from reservation
2018-10-18 15:20:42 -04:00
Daniel Micay
dcd969ae04
use a consistent style for fixed-size int types
...
The stdint.h types don't cover 128-bit integers and the underscore makes
them ill suited to usage in function suffixes. Instead, use the common
naming style in the Linux kernel and elsewhere including the ChaCha8
implementation included here.
2018-10-04 15:17:11 -04:00
Daniel Micay
6372fee410
use consistent macro naming convention
2018-10-03 16:00:37 -04:00
Daniel Micay
e85c69a0a4
fix builds with prefix
2018-08-29 15:07:36 -04:00
Daniel Micay
8b42e8c3d6
make sure errno is always set on failure
2018-08-28 22:49:11 -04:00
Daniel Micay
ec78add6ab
define ffzl utility function
2018-08-25 03:14:07 -04:00
Daniel Micay
70d61b6662
initial commit
2018-08-23 15:42:41 -04:00