summaryrefslogtreecommitdiffstats
path: root/lib/libc/i386/stdlib/abs.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/i386/stdlib/abs.S')
-rw-r--r--lib/libc/i386/stdlib/abs.S12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/i386/stdlib/abs.S b/lib/libc/i386/stdlib/abs.S
index 3122fcb..4915d16 100644
--- a/lib/libc/i386/stdlib/abs.S
+++ b/lib/libc/i386/stdlib/abs.S
@@ -32,18 +32,20 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $Id$
*/
-#if defined(LIBC_SCCS) && !defined(lint)
+#if defined(LIBC_RCS) && !defined(lint)
.text
- .asciz "@(#)abs.s 5.2 (Berkeley) 12/17/90"
-#endif /* LIBC_SCCS and not lint */
+ .asciz "$Id$"
+#endif /* LIBC_RCS and not lint */
#include "DEFS.h"
ENTRY(abs)
movl 4(%esp),%eax
- cmpl $0,%eax
- jge 1f
+ testl %eax,%eax
+ jns 1f
negl %eax
1: ret
OpenPOWER on IntegriCloud