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

Go to the source code of this file.

Data Structures

union  dw_union
 

Macros

#define FP_EX_BOOKE_E500_SPE
 
#define EFAPU   0x4
 
#define VCT   0x4
 
#define SPFP   0x6
 
#define DPFP   0x7
 
#define EFSADD   0x2c0
 
#define EFSSUB   0x2c1
 
#define EFSABS   0x2c4
 
#define EFSNABS   0x2c5
 
#define EFSNEG   0x2c6
 
#define EFSMUL   0x2c8
 
#define EFSDIV   0x2c9
 
#define EFSCMPGT   0x2cc
 
#define EFSCMPLT   0x2cd
 
#define EFSCMPEQ   0x2ce
 
#define EFSCFD   0x2cf
 
#define EFSCFSI   0x2d1
 
#define EFSCTUI   0x2d4
 
#define EFSCTSI   0x2d5
 
#define EFSCTUF   0x2d6
 
#define EFSCTSF   0x2d7
 
#define EFSCTUIZ   0x2d8
 
#define EFSCTSIZ   0x2da
 
#define EVFSADD   0x280
 
#define EVFSSUB   0x281
 
#define EVFSABS   0x284
 
#define EVFSNABS   0x285
 
#define EVFSNEG   0x286
 
#define EVFSMUL   0x288
 
#define EVFSDIV   0x289
 
#define EVFSCMPGT   0x28c
 
#define EVFSCMPLT   0x28d
 
#define EVFSCMPEQ   0x28e
 
#define EVFSCTUI   0x294
 
#define EVFSCTSI   0x295
 
#define EVFSCTUF   0x296
 
#define EVFSCTSF   0x297
 
#define EVFSCTUIZ   0x298
 
#define EVFSCTSIZ   0x29a
 
#define EFDADD   0x2e0
 
#define EFDSUB   0x2e1
 
#define EFDABS   0x2e4
 
#define EFDNABS   0x2e5
 
#define EFDNEG   0x2e6
 
#define EFDMUL   0x2e8
 
#define EFDDIV   0x2e9
 
#define EFDCTUIDZ   0x2ea
 
#define EFDCTSIDZ   0x2eb
 
#define EFDCMPGT   0x2ec
 
#define EFDCMPLT   0x2ed
 
#define EFDCMPEQ   0x2ee
 
#define EFDCFS   0x2ef
 
#define EFDCTUI   0x2f4
 
#define EFDCTSI   0x2f5
 
#define EFDCTUF   0x2f6
 
#define EFDCTSF   0x2f7
 
#define EFDCTUIZ   0x2f8
 
#define EFDCTSIZ   0x2fa
 
#define AB   2
 
#define XA   3
 
#define XB   4
 
#define XCR   5
 
#define NOTYPE   0
 
#define SIGN_BIT_S   (1UL << 31)
 
#define SIGN_BIT_D   (1ULL << 63)
 
#define FP_EX_MASK
 

Functions

int do_spe_mathemu (struct pt_regs *regs)
 
int speround_handler (struct pt_regs *regs)
 
int __init spe_mathemu_init (void)
 
 module_init (spe_mathemu_init)
 

Macro Definition Documentation

#define AB   2

Definition at line 96 of file math_efp.c.

#define DPFP   0x7

Definition at line 38 of file math_efp.c.

#define EFAPU   0x4

Definition at line 34 of file math_efp.c.

#define EFDABS   0x2e4

Definition at line 78 of file math_efp.c.

#define EFDADD   0x2e0

Definition at line 76 of file math_efp.c.

#define EFDCFS   0x2ef

Definition at line 88 of file math_efp.c.

#define EFDCMPEQ   0x2ee

Definition at line 87 of file math_efp.c.

#define EFDCMPGT   0x2ec

Definition at line 85 of file math_efp.c.

#define EFDCMPLT   0x2ed

Definition at line 86 of file math_efp.c.

#define EFDCTSF   0x2f7

Definition at line 92 of file math_efp.c.

#define EFDCTSI   0x2f5

Definition at line 90 of file math_efp.c.

#define EFDCTSIDZ   0x2eb

Definition at line 84 of file math_efp.c.

#define EFDCTSIZ   0x2fa

Definition at line 94 of file math_efp.c.

#define EFDCTUF   0x2f6

Definition at line 91 of file math_efp.c.

#define EFDCTUI   0x2f4

Definition at line 89 of file math_efp.c.

#define EFDCTUIDZ   0x2ea

Definition at line 83 of file math_efp.c.

#define EFDCTUIZ   0x2f8

Definition at line 93 of file math_efp.c.

#define EFDDIV   0x2e9

Definition at line 82 of file math_efp.c.

#define EFDMUL   0x2e8

Definition at line 81 of file math_efp.c.

#define EFDNABS   0x2e5

Definition at line 79 of file math_efp.c.

#define EFDNEG   0x2e6

Definition at line 80 of file math_efp.c.

#define EFDSUB   0x2e1

Definition at line 77 of file math_efp.c.

#define EFSABS   0x2c4

Definition at line 42 of file math_efp.c.

#define EFSADD   0x2c0

Definition at line 40 of file math_efp.c.

#define EFSCFD   0x2cf

Definition at line 50 of file math_efp.c.

#define EFSCFSI   0x2d1

Definition at line 51 of file math_efp.c.

#define EFSCMPEQ   0x2ce

Definition at line 49 of file math_efp.c.

#define EFSCMPGT   0x2cc

Definition at line 47 of file math_efp.c.

#define EFSCMPLT   0x2cd

Definition at line 48 of file math_efp.c.

#define EFSCTSF   0x2d7

Definition at line 55 of file math_efp.c.

#define EFSCTSI   0x2d5

Definition at line 53 of file math_efp.c.

#define EFSCTSIZ   0x2da

Definition at line 57 of file math_efp.c.

#define EFSCTUF   0x2d6

Definition at line 54 of file math_efp.c.

#define EFSCTUI   0x2d4

Definition at line 52 of file math_efp.c.

#define EFSCTUIZ   0x2d8

Definition at line 56 of file math_efp.c.

#define EFSDIV   0x2c9

Definition at line 46 of file math_efp.c.

#define EFSMUL   0x2c8

Definition at line 45 of file math_efp.c.

#define EFSNABS   0x2c5

Definition at line 43 of file math_efp.c.

#define EFSNEG   0x2c6

Definition at line 44 of file math_efp.c.

#define EFSSUB   0x2c1

Definition at line 41 of file math_efp.c.

#define EVFSABS   0x284

Definition at line 61 of file math_efp.c.

#define EVFSADD   0x280

Definition at line 59 of file math_efp.c.

#define EVFSCMPEQ   0x28e

Definition at line 68 of file math_efp.c.

#define EVFSCMPGT   0x28c

Definition at line 66 of file math_efp.c.

#define EVFSCMPLT   0x28d

Definition at line 67 of file math_efp.c.

#define EVFSCTSF   0x297

Definition at line 72 of file math_efp.c.

#define EVFSCTSI   0x295

Definition at line 70 of file math_efp.c.

#define EVFSCTSIZ   0x29a

Definition at line 74 of file math_efp.c.

#define EVFSCTUF   0x296

Definition at line 71 of file math_efp.c.

#define EVFSCTUI   0x294

Definition at line 69 of file math_efp.c.

#define EVFSCTUIZ   0x298

Definition at line 73 of file math_efp.c.

#define EVFSDIV   0x289

Definition at line 65 of file math_efp.c.

#define EVFSMUL   0x288

Definition at line 64 of file math_efp.c.

#define EVFSNABS   0x285

Definition at line 62 of file math_efp.c.

#define EVFSNEG   0x286

Definition at line 63 of file math_efp.c.

#define EVFSSUB   0x281

Definition at line 60 of file math_efp.c.

#define FP_EX_BOOKE_E500_SPE

Definition at line 27 of file math_efp.c.

#define FP_EX_MASK
Value:

Definition at line 104 of file math_efp.c.

#define NOTYPE   0

Definition at line 100 of file math_efp.c.

#define SIGN_BIT_D   (1ULL << 63)

Definition at line 103 of file math_efp.c.

#define SIGN_BIT_S   (1UL << 31)

Definition at line 102 of file math_efp.c.

#define SPFP   0x6

Definition at line 37 of file math_efp.c.

#define VCT   0x4

Definition at line 36 of file math_efp.c.

#define XA   3

Definition at line 97 of file math_efp.c.

#define XB   4

Definition at line 98 of file math_efp.c.

#define XCR   5

Definition at line 99 of file math_efp.c.

Function Documentation

int do_spe_mathemu ( struct pt_regs regs)

Definition at line 179 of file math_efp.c.

module_init ( spe_mathemu_init  )
int __init spe_mathemu_init ( void  )

Definition at line 733 of file math_efp.c.

int speround_handler ( struct pt_regs regs)

Definition at line 661 of file math_efp.c.