1176491Smarcel/* $NetBSD: fpu_extern.h,v 1.3 2005/12/11 12:18:42 christos Exp $ */ 2176491Smarcel/* $FreeBSD: releng/10.2/sys/powerpc/fpu/fpu_extern.h 204640 2010-03-03 17:07:02Z joel $ */ 3176491Smarcel 4176491Smarcel/*- 5176491Smarcel * Copyright (c) 1995 The NetBSD Foundation, Inc. 6176491Smarcel * All rights reserved. 7176491Smarcel * 8176491Smarcel * This code is derived from software contributed to The NetBSD Foundation 9176491Smarcel * by Christos Zoulas. 10176491Smarcel * 11176491Smarcel * Redistribution and use in source and binary forms, with or without 12176491Smarcel * modification, are permitted provided that the following conditions 13176491Smarcel * are met: 14176491Smarcel * 1. Redistributions of source code must retain the above copyright 15176491Smarcel * notice, this list of conditions and the following disclaimer. 16176491Smarcel * 2. Redistributions in binary form must reproduce the above copyright 17176491Smarcel * notice, this list of conditions and the following disclaimer in the 18176491Smarcel * documentation and/or other materials provided with the distribution. 19176491Smarcel * 20176491Smarcel * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 21176491Smarcel * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 22176491Smarcel * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23176491Smarcel * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 24176491Smarcel * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25176491Smarcel * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26176491Smarcel * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27176491Smarcel * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28176491Smarcel * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29176491Smarcel * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30176491Smarcel * POSSIBILITY OF SUCH DAMAGE. 31176491Smarcel */ 32176491Smarcel 33176491Smarcelstruct proc; 34176491Smarcelstruct fpreg; 35176491Smarcelstruct trapframe; 36176491Smarcelunion instr; 37176491Smarcelstruct fpemu; 38176491Smarcelstruct fpn; 39176491Smarcel 40176491Smarcel/* fpu.c */ 41176491Smarcelint fpu_emulate(struct trapframe *, struct fpreg *); 42176491Smarcelint fpu_execute(struct trapframe *, struct fpemu *, union instr *); 43176491Smarcel 44176491Smarcel/* fpu_explode.c */ 45176491Smarcelint fpu_itof(struct fpn *, u_int); 46176491Smarcelint fpu_xtof(struct fpn *, u_int64_t); 47176491Smarcelint fpu_stof(struct fpn *, u_int); 48176491Smarcelint fpu_dtof(struct fpn *, u_int, u_int); 49176491Smarcel 50176491Smarcel/* fpu_implode.c */ 51176491Smarcelu_int fpu_ftoi(struct fpemu *, struct fpn *); 52176491Smarcelu_int fpu_ftox(struct fpemu *, struct fpn *, u_int *); 53176491Smarcelu_int fpu_ftos(struct fpemu *, struct fpn *); 54176491Smarcelu_int fpu_ftod(struct fpemu *, struct fpn *, u_int *); 55176491Smarcel 56