From 1504cd61727b44d99d6bedffcf562e771d90ca99 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Sun, 22 Jan 1995 22:03:45 +0000 Subject: (Very) minor improvement from NetBSD/J.T.Conklin. --- lib/libc/i386/stdlib/abs.S | 4 ++-- lib/libc/i386/stdlib/labs.S | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc/i386') diff --git a/lib/libc/i386/stdlib/abs.S b/lib/libc/i386/stdlib/abs.S index 3122fcb84f6f..ab677d52f4c4 100644 --- a/lib/libc/i386/stdlib/abs.S +++ b/lib/libc/i386/stdlib/abs.S @@ -43,7 +43,7 @@ ENTRY(abs) movl 4(%esp),%eax - cmpl $0,%eax - jge 1f + testl %eax,%eax + jns 1f negl %eax 1: ret diff --git a/lib/libc/i386/stdlib/labs.S b/lib/libc/i386/stdlib/labs.S index b7a1c5dceebb..4475bb970c88 100644 --- a/lib/libc/i386/stdlib/labs.S +++ b/lib/libc/i386/stdlib/labs.S @@ -43,7 +43,7 @@ ENTRY(labs) movl 4(%esp),%eax - cmpl $0,%eax - jge 1f + testl %eax,%eax + jns 1f negl %eax 1: ret -- cgit v1.2.3