[libc] Add abs()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
pull/18/head
Michael Brown 2014-01-07 03:53:56 +00:00
parent 97fd5ccdd8
commit 26f782bb41
1 changed files with 4 additions and 0 deletions

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 );