1 /* $OpenBSD: fpu.h,v 1.2 2014/07/01 20:26:09 miod Exp $ */ 2 3 /* 4 * Copyright (c) 2007, 2014, Miodrag Vallat. 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice, this permission notice, and the disclaimer below 9 * appear in all copies. 10 * 11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 #ifndef _M88K_FPU_H_ 21 #define _M88K_FPU_H_ 22 23 /* FPECR bits */ 24 #define FPECR_FIOV 0x80 25 #define FPECR_FUNIMP 0x40 26 #define FPECR_FPRV 0x20 27 #define FPECR_FROP 0x10 28 #define FPECR_FDVZ 0x08 29 #define FPECR_FUNF 0x04 30 #define FPECR_FOVF 0x02 31 #define FPECR_FINX 0x01 32 33 /* FPSR and FPCR exception bits */ 34 #define FPSR_EFINV 0x10 35 #define FPSR_EFDVZ 0x08 36 #define FPSR_EFUNF 0x04 37 #define FPSR_EFOVF 0x02 38 #define FPSR_EFINX 0x01 39 40 /* FPIT bits */ 41 #define FPIT_DBL 0x00000400 42 43 /* FPRH bits and masks */ 44 #define FPRH_SIGN 0x80000000 45 #define FPRH_ADDONE 0x02000000 46 #define FPRH_MANTH_MASK 0x001fffff 47 #define FPRH_MANTH_BITS 21 48 49 #endif /* _M88K_FPU_H_ */ 50