Commit Graph

24 Commits

Author SHA1 Message Date
Nils O. Selåsdal 251246924d Add slot allocator 2025-07-21 19:57:26 +02:00
Nils O. Selåsdal 603d86bb61 Remove stdio.h from utils.h. Manually include stdio.h if using the
TRACEF() macro from utils.h
2015-01-03 01:52:53 +01:00
Nils O. Selåsdal a367e84b00 Move UC_INLINE to utils.h 2015-01-03 01:51:18 +01:00
Nils O. Selåsdal 9b3c1e370b ( ) around macro arguments.. 2014-09-12 01:11:41 +02:00
Nils O. Selåsdal 7eb42cc538 fix UC_ROUND_UP() 2014-09-12 01:11:41 +02:00
Nils O. Selåsdal f9fffbc4b0 Better error message for UC_STATIC_ASSERT. Also
require it to be terminated by a ;
2014-09-12 01:11:40 +02:00
Nils O. Selåsdal f6badb41a2 Move UC_ASSERT/NOTREACHED to backtrace.h 2013-12-08 00:43:22 +01:00
Nils O. Selåsdal f6afc8ba57 Allow UC_MIN(UC_MAX(x,y),z), though only one nesting can be done. 2013-12-03 19:42:43 +01:00
Nils O. Selåsdal f9ef8d620f style cleanups 2013-11-28 23:30:44 +01:00
Nils O. Selåsdal 88032c6218 use a do{}while(0) guard in TRACEF when DEBUG is not defined 2013-11-22 14:25:50 +01:00
Nils O. Selåsdal 0f88bb3190 Comment the UC_DIV_ROUND_UP macro 2013-11-17 21:44:19 +01:00
Nils O. Selåsdal 13567e3cd9 Add macro for stringifying __FILE__:__LINE__ 2013-10-16 01:37:20 +02:00
Nils O. Selåsdal 6058be1c07 Fix UC_STATIC_ASSERT 2013-10-14 18:03:17 +02:00
Nils O. Selåsdal 48678a9858 Use consisten header guard, prefixed with UC_ 2013-10-13 17:37:28 +02:00
Nils O. Selåsdal 08a50d8cfe fix UC_ASSERT writing to wrong fd, and unterminated if
log more in UC_NOTREACHED
2013-10-08 17:39:44 +02:00
Nils O. Selåsdal 425062ad18 Add needed include files 2013-10-08 17:34:58 +02:00
Nils O. Selåsdal dd517a5d85 Prefix CONTAINER_OF with UC_ 2013-09-28 23:45:51 +02:00
Nils O. Selåsdal 1e0e840ee5 Get rid of aligment warning on CONTAINER_OF in clang 2013-06-27 20:58:43 +02:00
Nils O. Selåsdal eba7590e6c Add CONST_CONTAINER_OF for const pointers 2013-06-10 22:55:30 +02:00
Nils O. Selåsdal ad8181cf4d Add UC_ROUND_DOWN, fix duplicated UC_ROUND_UP 2013-04-08 22:24:19 +02:00
Nils O. Selåsdal 08ea383dd6 Merge branch 'master' into dev
Conflicts:
	include/ucore/utils.h
2013-04-01 23:50:07 +02:00
Nils O. Selåsdal ab4e1895d4 Add a few or handy macros 2013-04-01 23:47:01 +02:00
Nils O. Selåsdal 2e226d561b Add UC_ASSERT 2013-03-17 22:13:57 +01:00
Nils O. Selåsdal 8badeaf857 Remove ucore_ prefix from headers and source files 2013-03-06 22:22:04 +01:00