[libc] Add abs()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2014-01-07 03:53:56 +00:00
parent 97fd5ccdd8
commit 26f782bb41

View File

@@ -93,6 +93,10 @@ static inline void srand ( unsigned int seed ) {
****************************************************************************
*/
static inline __attribute__ (( always_inline )) int abs ( int value ) {
return __builtin_abs ( value );
}
extern int system ( const char *command );
extern __asmcall int main ( void );