Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
math.c File Reference
#include <linux/types.h>
#include <linux/sched.h>
#include <asm/uaccess.h>
#include <asm/reg.h>
#include <asm/sfp-machine.h>
#include <math-emu/double.h>

Go to the source code of this file.

Macros

#define FLOATFUNC(x)   extern int x(void *, void *, void *, void *)
 
#define OP31   0x1f /* 31 */
 
#define LFS   0x30 /* 48 */
 
#define LFSU   0x31 /* 49 */
 
#define LFD   0x32 /* 50 */
 
#define LFDU   0x33 /* 51 */
 
#define STFS   0x34 /* 52 */
 
#define STFSU   0x35 /* 53 */
 
#define STFD   0x36 /* 54 */
 
#define STFDU   0x37 /* 55 */
 
#define OP59   0x3b /* 59 */
 
#define OP63   0x3f /* 63 */
 
#define LFSX   0x217 /* 535 */
 
#define LFSUX   0x237 /* 567 */
 
#define LFDX   0x257 /* 599 */
 
#define LFDUX   0x277 /* 631 */
 
#define STFSX   0x297 /* 663 */
 
#define STFSUX   0x2b7 /* 695 */
 
#define STFDX   0x2d7 /* 727 */
 
#define STFDUX   0x2f7 /* 759 */
 
#define STFIWX   0x3d7 /* 983 */
 
#define FDIVS   0x012 /* 18 */
 
#define FSUBS   0x014 /* 20 */
 
#define FADDS   0x015 /* 21 */
 
#define FSQRTS   0x016 /* 22 */
 
#define FRES   0x018 /* 24 */
 
#define FMULS   0x019 /* 25 */
 
#define FMSUBS   0x01c /* 28 */
 
#define FMADDS   0x01d /* 29 */
 
#define FNMSUBS   0x01e /* 30 */
 
#define FNMADDS   0x01f /* 31 */
 
#define FDIV   0x012 /* 18 */
 
#define FSUB   0x014 /* 20 */
 
#define FADD   0x015 /* 21 */
 
#define FSQRT   0x016 /* 22 */
 
#define FSEL   0x017 /* 23 */
 
#define FMUL   0x019 /* 25 */
 
#define FRSQRTE   0x01a /* 26 */
 
#define FMSUB   0x01c /* 28 */
 
#define FMADD   0x01d /* 29 */
 
#define FNMSUB   0x01e /* 30 */
 
#define FNMADD   0x01f /* 31 */
 
#define FCMPU   0x000 /* 0 */
 
#define FRSP   0x00c /* 12 */
 
#define FCTIW   0x00e /* 14 */
 
#define FCTIWZ   0x00f /* 15 */
 
#define FCMPO   0x020 /* 32 */
 
#define MTFSB1   0x026 /* 38 */
 
#define FNEG   0x028 /* 40 */
 
#define MCRFS   0x040 /* 64 */
 
#define MTFSB0   0x046 /* 70 */
 
#define FMR   0x048 /* 72 */
 
#define MTFSFI   0x086 /* 134 */
 
#define FNABS   0x088 /* 136 */
 
#define FABS   0x108 /* 264 */
 
#define MFFS   0x247 /* 583 */
 
#define MTFSF   0x2c7 /* 711 */
 
#define AB   2
 
#define AC   3
 
#define ABC   4
 
#define D   5
 
#define DU   6
 
#define X   7
 
#define XA   8
 
#define XB   9
 
#define XCR   11
 
#define XCRB   12
 
#define XCRI   13
 
#define XCRL   16
 
#define XE   14
 
#define XEU   15
 
#define XFLB   10
 

Functions

 FLOATFUNC (fadd)
 
 FLOATFUNC (fadds)
 
 FLOATFUNC (fdiv)
 
 FLOATFUNC (fdivs)
 
 FLOATFUNC (fmul)
 
 FLOATFUNC (fmuls)
 
 FLOATFUNC (fsub)
 
 FLOATFUNC (fsubs)
 
 FLOATFUNC (fmadd)
 
 FLOATFUNC (fmadds)
 
 FLOATFUNC (fmsub)
 
 FLOATFUNC (fmsubs)
 
 FLOATFUNC (fnmadd)
 
 FLOATFUNC (fnmadds)
 
 FLOATFUNC (fnmsub)
 
 FLOATFUNC (fnmsubs)
 
 FLOATFUNC (fctiw)
 
 FLOATFUNC (fctiwz)
 
 FLOATFUNC (frsp)
 
 FLOATFUNC (fcmpo)
 
 FLOATFUNC (fcmpu)
 
 FLOATFUNC (mcrfs)
 
 FLOATFUNC (mffs)
 
 FLOATFUNC (mtfsb0)
 
 FLOATFUNC (mtfsb1)
 
 FLOATFUNC (mtfsf)
 
 FLOATFUNC (mtfsfi)
 
 FLOATFUNC (lfd)
 
 FLOATFUNC (lfs)
 
 FLOATFUNC (stfd)
 
 FLOATFUNC (stfs)
 
 FLOATFUNC (stfiwx)
 
 FLOATFUNC (fabs)
 
 FLOATFUNC (fmr)
 
 FLOATFUNC (fnabs)
 
 FLOATFUNC (fneg)
 
 FLOATFUNC (fres)
 
 FLOATFUNC (frsqrte)
 
 FLOATFUNC (fsel)
 
 FLOATFUNC (fsqrt)
 
 FLOATFUNC (fsqrts)
 
int do_mathemu (struct pt_regs *regs)
 

Macro Definition Documentation

#define AB   2

Definition at line 137 of file math.c.

#define ABC   4

Definition at line 139 of file math.c.

#define AC   3

Definition at line 138 of file math.c.

#define D   5

Definition at line 140 of file math.c.

#define DU   6

Definition at line 141 of file math.c.

#define FABS   0x108 /* 264 */

Definition at line 132 of file math.c.

#define FADD   0x015 /* 21 */

Definition at line 109 of file math.c.

#define FADDS   0x015 /* 21 */

Definition at line 96 of file math.c.

#define FCMPO   0x020 /* 32 */

Definition at line 124 of file math.c.

#define FCMPU   0x000 /* 0 */

Definition at line 120 of file math.c.

#define FCTIW   0x00e /* 14 */

Definition at line 122 of file math.c.

#define FCTIWZ   0x00f /* 15 */

Definition at line 123 of file math.c.

#define FDIV   0x012 /* 18 */

Definition at line 107 of file math.c.

#define FDIVS   0x012 /* 18 */

Definition at line 94 of file math.c.

#define FLOATFUNC (   x)    extern int x(void *, void *, void *, void *)

Definition at line 14 of file math.c.

#define FMADD   0x01d /* 29 */

Definition at line 115 of file math.c.

#define FMADDS   0x01d /* 29 */

Definition at line 101 of file math.c.

#define FMR   0x048 /* 72 */

Definition at line 129 of file math.c.

#define FMSUB   0x01c /* 28 */

Definition at line 114 of file math.c.

#define FMSUBS   0x01c /* 28 */

Definition at line 100 of file math.c.

#define FMUL   0x019 /* 25 */

Definition at line 112 of file math.c.

#define FMULS   0x019 /* 25 */

Definition at line 99 of file math.c.

#define FNABS   0x088 /* 136 */

Definition at line 131 of file math.c.

#define FNEG   0x028 /* 40 */

Definition at line 126 of file math.c.

#define FNMADD   0x01f /* 31 */

Definition at line 117 of file math.c.

#define FNMADDS   0x01f /* 31 */

Definition at line 103 of file math.c.

#define FNMSUB   0x01e /* 30 */

Definition at line 116 of file math.c.

#define FNMSUBS   0x01e /* 30 */

Definition at line 102 of file math.c.

#define FRES   0x018 /* 24 */

Definition at line 98 of file math.c.

#define FRSP   0x00c /* 12 */

Definition at line 121 of file math.c.

#define FRSQRTE   0x01a /* 26 */

Definition at line 113 of file math.c.

#define FSEL   0x017 /* 23 */

Definition at line 111 of file math.c.

#define FSQRT   0x016 /* 22 */

Definition at line 110 of file math.c.

#define FSQRTS   0x016 /* 22 */

Definition at line 97 of file math.c.

#define FSUB   0x014 /* 20 */

Definition at line 108 of file math.c.

#define FSUBS   0x014 /* 20 */

Definition at line 95 of file math.c.

#define LFD   0x32 /* 50 */

Definition at line 71 of file math.c.

#define LFDU   0x33 /* 51 */

Definition at line 72 of file math.c.

#define LFDUX   0x277 /* 631 */

Definition at line 85 of file math.c.

#define LFDX   0x257 /* 599 */

Definition at line 84 of file math.c.

#define LFS   0x30 /* 48 */

Definition at line 69 of file math.c.

#define LFSU   0x31 /* 49 */

Definition at line 70 of file math.c.

#define LFSUX   0x237 /* 567 */

Definition at line 83 of file math.c.

#define LFSX   0x217 /* 535 */

Definition at line 82 of file math.c.

#define MCRFS   0x040 /* 64 */

Definition at line 127 of file math.c.

#define MFFS   0x247 /* 583 */

Definition at line 133 of file math.c.

#define MTFSB0   0x046 /* 70 */

Definition at line 128 of file math.c.

#define MTFSB1   0x026 /* 38 */

Definition at line 125 of file math.c.

#define MTFSF   0x2c7 /* 711 */

Definition at line 134 of file math.c.

#define MTFSFI   0x086 /* 134 */

Definition at line 130 of file math.c.

#define OP31   0x1f /* 31 */

Definition at line 68 of file math.c.

#define OP59   0x3b /* 59 */

Definition at line 77 of file math.c.

#define OP63   0x3f /* 63 */

Definition at line 78 of file math.c.

#define STFD   0x36 /* 54 */

Definition at line 75 of file math.c.

#define STFDU   0x37 /* 55 */

Definition at line 76 of file math.c.

#define STFDUX   0x2f7 /* 759 */

Definition at line 89 of file math.c.

#define STFDX   0x2d7 /* 727 */

Definition at line 88 of file math.c.

#define STFIWX   0x3d7 /* 983 */

Definition at line 90 of file math.c.

#define STFS   0x34 /* 52 */

Definition at line 73 of file math.c.

#define STFSU   0x35 /* 53 */

Definition at line 74 of file math.c.

#define STFSUX   0x2b7 /* 695 */

Definition at line 87 of file math.c.

#define STFSX   0x297 /* 663 */

Definition at line 86 of file math.c.

#define X   7

Definition at line 142 of file math.c.

#define XA   8

Definition at line 143 of file math.c.

#define XB   9

Definition at line 144 of file math.c.

#define XCR   11

Definition at line 145 of file math.c.

#define XCRB   12

Definition at line 146 of file math.c.

#define XCRI   13

Definition at line 147 of file math.c.

#define XCRL   16

Definition at line 148 of file math.c.

#define XE   14

Definition at line 149 of file math.c.

#define XEU   15

Definition at line 150 of file math.c.

#define XFLB   10

Definition at line 151 of file math.c.

Function Documentation

int do_mathemu ( struct pt_regs regs)

Definition at line 214 of file math.c.

FLOATFUNC ( fadd  )
FLOATFUNC ( fadds  )
FLOATFUNC ( fdiv  )
FLOATFUNC ( fdivs  )
FLOATFUNC ( fmul  )
FLOATFUNC ( fmuls  )
FLOATFUNC ( fsub  )
FLOATFUNC ( fsubs  )
FLOATFUNC ( fmadd  )
FLOATFUNC ( fmadds  )
FLOATFUNC ( fmsub  )
FLOATFUNC ( fmsubs  )
FLOATFUNC ( fnmadd  )
FLOATFUNC ( fnmadds  )
FLOATFUNC ( fnmsub  )
FLOATFUNC ( fnmsubs  )
FLOATFUNC ( fctiw  )
FLOATFUNC ( fctiwz  )
FLOATFUNC ( frsp  )
FLOATFUNC ( fcmpo  )
FLOATFUNC ( fcmpu  )
FLOATFUNC ( mcrfs  )
FLOATFUNC ( mffs  )
FLOATFUNC ( mtfsb0  )
FLOATFUNC ( mtfsb1  )
FLOATFUNC ( mtfsf  )
FLOATFUNC ( mtfsfi  )
FLOATFUNC ( lfd  )
FLOATFUNC ( lfs  )
FLOATFUNC ( stfd  )
FLOATFUNC ( stfs  )
FLOATFUNC ( stfiwx  )
FLOATFUNC ( fabs  )
FLOATFUNC ( fmr  )
FLOATFUNC ( fnabs  )
FLOATFUNC ( fneg  )
FLOATFUNC ( fres  )
FLOATFUNC ( frsqrte  )
FLOATFUNC ( fsel  )
FLOATFUNC ( fsqrt  )
FLOATFUNC ( fsqrts  )