1*0d34bfa2Suebayasi/* $NetBSD: labs.S,v 1.8 2014/05/23 02:34:19 uebayasi Exp $ */ 21394f01bSchristos 3b3f9f8f6Sjtc/*- 4b3f9f8f6Sjtc * Copyright (c) 1990 The Regents of the University of California. 5b3f9f8f6Sjtc * All rights reserved. 6b3f9f8f6Sjtc * 7b3f9f8f6Sjtc * This code is derived from software contributed to Berkeley by 8b3f9f8f6Sjtc * William Jolitz. 9b3f9f8f6Sjtc * 10b3f9f8f6Sjtc * Redistribution and use in source and binary forms, with or without 11b3f9f8f6Sjtc * modification, are permitted provided that the following conditions 12b3f9f8f6Sjtc * are met: 13b3f9f8f6Sjtc * 1. Redistributions of source code must retain the above copyright 14b3f9f8f6Sjtc * notice, this list of conditions and the following disclaimer. 15b3f9f8f6Sjtc * 2. Redistributions in binary form must reproduce the above copyright 16b3f9f8f6Sjtc * notice, this list of conditions and the following disclaimer in the 17b3f9f8f6Sjtc * documentation and/or other materials provided with the distribution. 18eb7c1594Sagc * 3. Neither the name of the University nor the names of its contributors 19b3f9f8f6Sjtc * may be used to endorse or promote products derived from this software 20b3f9f8f6Sjtc * without specific prior written permission. 21b3f9f8f6Sjtc * 22b3f9f8f6Sjtc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 23b3f9f8f6Sjtc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24b3f9f8f6Sjtc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25b3f9f8f6Sjtc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 26b3f9f8f6Sjtc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27b3f9f8f6Sjtc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28b3f9f8f6Sjtc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29b3f9f8f6Sjtc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30b3f9f8f6Sjtc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31b3f9f8f6Sjtc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32b3f9f8f6Sjtc * SUCH DAMAGE. 33b3f9f8f6Sjtc * 34b3f9f8f6Sjtc * from: @(#)abs.s 5.2 (Berkeley) 12/17/90 35b3f9f8f6Sjtc */ 36b3f9f8f6Sjtc 37915f7d4dSjtc#include <machine/asm.h> 38915f7d4dSjtc#if defined(LIBC_SCCS) 39*0d34bfa2Suebayasi RCSID("$NetBSD: labs.S,v 1.8 2014/05/23 02:34:19 uebayasi Exp $") 40915f7d4dSjtc#endif 41b3f9f8f6Sjtc 42b3f9f8f6SjtcENTRY(labs) 43b3f9f8f6Sjtc movl 4(%esp),%eax 441f29a3d9Sjtc testl %eax,%eax 451f29a3d9Sjtc jns 1f 46b3f9f8f6Sjtc negl %eax 47b3f9f8f6Sjtc1: ret 48*0d34bfa2SuebayasiEND(labs) 49