1 /* $NetBSD: negtf2.c,v 1.1 2011/01/17 10:08:35 matt Exp $ */ 2 /** @file 3 * 4 * Copyright (c) 2013 - 2014, ARM Limited. All rights reserved. 5 * 6 * This program and the accompanying materials 7 * are licensed and made available under the terms and conditions of the BSD License 8 * which accompanies this distribution. The full text of the license may be found at 9 * http://opensource.org/licenses/bsd-license.php 10 * 11 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. 13 * 14 **/ 15 /* 16 * Written by Matt Thomas, 2011. This file is in the Public Domain. 17 */ 18 19 #include "softfloat-for-gcc.h" 20 #include "milieu.h" 21 #include "softfloat.h" 22 23 #include <sys/cdefs.h> 24 #if defined(LIBC_SCCS) && !defined(lint) 25 __RCSID("$NetBSD: negtf2.c,v 1.1 2011/01/17 10:08:35 matt Exp $"); 26 #endif /* LIBC_SCCS and not lint */ 27 28 #ifdef FLOAT128 29 30 float128 __negtf2(float128); 31 32 float128 __negtf2(float128 a)33__negtf2(float128 a) 34 { 35 36 /* libgcc1.c says -a */ 37 a.high ^= FLOAT64_MANGLE(0x8000000000000000ULL); 38 return a; 39 } 40 41 #endif /* FLOAT128 */ 42