coreboot/src/commonlib
Alex James 8119841ec0 commonlib: Use __builtin_offsetof with supported compilers
Use __builtin_offsetof (which is treated as a constant expression) with
Clang & GCC. This also allows check_member to work with Clang 9.

Signed-off-by: Alex James <theracermaster@gmail.com>
Change-Id: I8b5cb4110c13ee42114ecf65932d7f1e5636210e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36249
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2019-11-05 15:00:44 +00:00
..
include/commonlib commonlib: Use __builtin_offsetof with supported compilers 2019-11-05 15:00:44 +00:00
storage device,drivers/: Drop some __SIMPLE_DEVICE__ use 2019-09-30 11:07:46 +00:00
cbfs.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00
fsp_relocate.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00
iobuf.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00
lz4.c.inc
lz4_wrapper.c Move compiler.h to commonlib 2018-10-08 16:57:27 +00:00
Makefile.inc commonlib: Add Bubble sort algorithm 2019-02-26 11:14:41 +00:00
mem_pool.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00
region.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00
sort.c AUTHORS: Move src/commonlib copyrights into AUTHORS file 2019-09-10 12:50:35 +00:00