From 3f76186ccea51c706ffda5d0f7d84b0c5185349d Mon Sep 17 00:00:00 2001 From: mdodd Date: Wed, 15 Jan 2003 02:02:33 +0000 Subject: - Add inline functions for {ll,l,}abs() to libkern. - Remove hand rolled abs() functions. --- sys/dev/speaker/spkr.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/speaker/spkr.c b/sys/dev/speaker/spkr.c index 4c8966e..de4c5ca 100644 --- a/sys/dev/speaker/spkr.c +++ b/sys/dev/speaker/spkr.c @@ -99,7 +99,6 @@ static void tone(unsigned int thz, unsigned int ticks); static void rest(int ticks); static void playinit(void); static void playtone(int pitch, int value, int sustain); -static int abs(int n); static void playstring(char *cp, size_t slen); /* emit tone of frequency thz for given number of ticks */ @@ -274,16 +273,6 @@ playtone(pitch, value, sustain) } } -static int -abs(n) - int n; -{ - if (n < 0) - return(-n); - else - return(n); -} - /* interpret and play an item from a notation string */ static void playstring(cp, slen) -- cgit v1.1