mirror of
https://github.com/apache/nuttx.git
synced 2025-12-07 01:44:23 +08:00
These macros are commonly provided on BSD systems. They are not part of C nor POSIX but these types of operations can be required in drivers implementation as well as in user space. The operations themself are simple but kind of cryptic when placed in the code as is. Thus having macro with an appropriate name is beneficial. The use of BSD naming here is only to cling to at least some other implementation instead of creating completelly NuttX specific one. Kudos to @hartmannathan for the source code documentation. Signed-off-by: Karel Kočí <kkoci@elektroline.cz>