11.1Smatt/* $NetBSD: negtf2.c,v 1.1 2011/01/17 10:08:35 matt Exp $ */
21.1Smatt
31.1Smatt/*
41.1Smatt * Written by Matt Thomas, 2011.  This file is in the Public Domain.
51.1Smatt */
61.1Smatt
71.1Smatt#include "softfloat-for-gcc.h"
81.1Smatt#include "milieu.h"
91.1Smatt#include "softfloat.h"
101.1Smatt
111.1Smatt#include <sys/cdefs.h>
121.1Smatt#if defined(LIBC_SCCS) && !defined(lint)
131.1Smatt__RCSID("$NetBSD: negtf2.c,v 1.1 2011/01/17 10:08:35 matt Exp $");
141.1Smatt#endif /* LIBC_SCCS and not lint */
151.1Smatt
161.1Smatt#ifdef FLOAT128
171.1Smatt
181.1Smattfloat128 __negtf2(float128);
191.1Smatt
201.1Smattfloat128
211.1Smatt__negtf2(float128 a)
221.1Smatt{
231.1Smatt
241.1Smatt	/* libgcc1.c says -a */
251.1Smatt	a.high ^= FLOAT64_MANGLE(0x8000000000000000ULL);
261.1Smatt	return a;
271.1Smatt}
281.1Smatt
291.1Smatt#endif /* FLOAT128 */
30