2000-11-30 Joel Sherrill <joel@OARcorp.com>

* inline/rtems/posix/mqueue.inl: Removed explicit dependency on abs().
This commit is contained in:
Joel Sherrill
2000-11-30 14:32:56 +00:00
parent c1a24fbea6
commit 40b0597434
4 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2000-11-30 Joel Sherrill <joel@OARcorp.com>
* inline/rtems/posix/mqueue.inl: Removed explicit dependency on abs().
2000-11-27 Joel Sherrill <joel@OARcorp.com>
* src/sysconf.c: Add support for _SC_CLK_TCK and _SC_OPEN_MAX.

View File

@@ -102,7 +102,8 @@ RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core(
CORE_message_queue_Submit_types priority
)
{
return abs( priority );
/* absolute value without a library dependency */
return ((priority >= 0) ? priority : -priority);
}
#endif