xref: /openbmc/linux/arch/x86/math-emu/fpu_asm.h (revision 6d99a79c)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*---------------------------------------------------------------------------+
3  |  fpu_asm.h                                                                |
4  |                                                                           |
5  | Copyright (C) 1992,1995,1997                                              |
6  |                       W. Metzenthen, 22 Parker St, Ormond, Vic 3163,      |
7  |                       Australia.  E-mail billm@suburbia.net               |
8  |                                                                           |
9  +---------------------------------------------------------------------------*/
10 
11 #ifndef _FPU_ASM_H_
12 #define _FPU_ASM_H_
13 
14 #include <linux/linkage.h>
15 
16 #define	EXCEPTION	FPU_exception
17 
18 #define PARAM1	8(%ebp)
19 #define	PARAM2	12(%ebp)
20 #define	PARAM3	16(%ebp)
21 #define	PARAM4	20(%ebp)
22 #define	PARAM5	24(%ebp)
23 #define	PARAM6	28(%ebp)
24 #define	PARAM7	32(%ebp)
25 
26 #define SIGL_OFFSET 0
27 #define	EXP(x)	8(x)
28 #define SIG(x)	SIGL_OFFSET##(x)
29 #define	SIGL(x)	SIGL_OFFSET##(x)
30 #define	SIGH(x)	4(x)
31 
32 #endif /* _FPU_ASM_H_ */
33