Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
math_32.c File Reference
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/perf_event.h>
#include <asm/uaccess.h>
#include "sfp-util_32.h"
#include <math-emu/soft-fp.h>
#include <math-emu/single.h>
#include <math-emu/double.h>
#include <math-emu/quad.h>

Go to the source code of this file.

Data Structures

union  argp
 

Macros

#define FLOATFUNC(x)   extern int x(void *,void *,void *)
 
#define FSQRTQ   0x02b /* v8 */
 
#define FADDQ   0x043 /* v8 */
 
#define FSUBQ   0x047 /* v8 */
 
#define FMULQ   0x04b /* v8 */
 
#define FDIVQ   0x04f /* v8 */
 
#define FDMULQ   0x06e /* v8 */
 
#define FQTOS   0x0c7 /* v8 */
 
#define FQTOD   0x0cb /* v8 */
 
#define FITOQ   0x0cc /* v8 */
 
#define FSTOQ   0x0cd /* v8 */
 
#define FDTOQ   0x0ce /* v8 */
 
#define FQTOI   0x0d3 /* v8 */
 
#define FCMPQ   0x053 /* v8 */
 
#define FCMPEQ   0x057 /* v8 */
 
#define FSQRTS   0x029 /* v7 */
 
#define FSQRTD   0x02a /* v7 */
 
#define FADDS   0x041 /* v6 */
 
#define FADDD   0x042 /* v6 */
 
#define FSUBS   0x045 /* v6 */
 
#define FSUBD   0x046 /* v6 */
 
#define FMULS   0x049 /* v6 */
 
#define FMULD   0x04a /* v6 */
 
#define FDIVS   0x04d /* v6 */
 
#define FDIVD   0x04e /* v6 */
 
#define FSMULD   0x069 /* v6 */
 
#define FDTOS   0x0c6 /* v6 */
 
#define FSTOD   0x0c9 /* v6 */
 
#define FSTOI   0x0d1 /* v6 */
 
#define FDTOI   0x0d2 /* v6 */
 
#define FABSS   0x009 /* v6 */
 
#define FCMPS   0x051 /* v6 */
 
#define FCMPES   0x055 /* v6 */
 
#define FCMPD   0x052 /* v6 */
 
#define FCMPED   0x056 /* v6 */
 
#define FMOVS   0x001 /* v6 */
 
#define FNEGS   0x005 /* v6 */
 
#define FITOS   0x0c4 /* v6 */
 
#define FITOD   0x0c8 /* v6 */
 
#define FSR_TEM_SHIFT   23UL
 
#define FSR_TEM_MASK   (0x1fUL << FSR_TEM_SHIFT)
 
#define FSR_AEXC_SHIFT   5UL
 
#define FSR_AEXC_MASK   (0x1fUL << FSR_AEXC_SHIFT)
 
#define FSR_CEXC_SHIFT   0UL
 
#define FSR_CEXC_MASK   (0x1fUL << FSR_CEXC_SHIFT)
 
#define TYPE(dummy, r, ru, b, bu, a, au)   type = (au << 2) | (a << 0) | (bu << 5) | (b << 3) | (ru << 8) | (r << 6)
 

Functions

int do_mathemu (struct pt_regs *regs, struct task_struct *fpt)
 

Macro Definition Documentation

#define FABSS   0x009 /* v6 */

Definition at line 115 of file math_32.c.

#define FADDD   0x042 /* v6 */

Definition at line 103 of file math_32.c.

#define FADDQ   0x043 /* v8 */

Definition at line 86 of file math_32.c.

#define FADDS   0x041 /* v6 */

Definition at line 102 of file math_32.c.

#define FCMPD   0x052 /* v6 */

Definition at line 118 of file math_32.c.

#define FCMPED   0x056 /* v6 */

Definition at line 119 of file math_32.c.

#define FCMPEQ   0x057 /* v8 */

Definition at line 98 of file math_32.c.

#define FCMPES   0x055 /* v6 */

Definition at line 117 of file math_32.c.

#define FCMPQ   0x053 /* v8 */

Definition at line 97 of file math_32.c.

#define FCMPS   0x051 /* v6 */

Definition at line 116 of file math_32.c.

#define FDIVD   0x04e /* v6 */

Definition at line 109 of file math_32.c.

#define FDIVQ   0x04f /* v8 */

Definition at line 89 of file math_32.c.

#define FDIVS   0x04d /* v6 */

Definition at line 108 of file math_32.c.

#define FDMULQ   0x06e /* v8 */

Definition at line 90 of file math_32.c.

#define FDTOI   0x0d2 /* v6 */

Definition at line 114 of file math_32.c.

#define FDTOQ   0x0ce /* v8 */

Definition at line 95 of file math_32.c.

#define FDTOS   0x0c6 /* v6 */

Definition at line 111 of file math_32.c.

#define FITOD   0x0c8 /* v6 */

Definition at line 123 of file math_32.c.

#define FITOQ   0x0cc /* v8 */

Definition at line 93 of file math_32.c.

#define FITOS   0x0c4 /* v6 */

Definition at line 122 of file math_32.c.

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

Definition at line 79 of file math_32.c.

#define FMOVS   0x001 /* v6 */

Definition at line 120 of file math_32.c.

#define FMULD   0x04a /* v6 */

Definition at line 107 of file math_32.c.

#define FMULQ   0x04b /* v8 */

Definition at line 88 of file math_32.c.

#define FMULS   0x049 /* v6 */

Definition at line 106 of file math_32.c.

#define FNEGS   0x005 /* v6 */

Definition at line 121 of file math_32.c.

#define FQTOD   0x0cb /* v8 */

Definition at line 92 of file math_32.c.

#define FQTOI   0x0d3 /* v8 */

Definition at line 96 of file math_32.c.

#define FQTOS   0x0c7 /* v8 */

Definition at line 91 of file math_32.c.

#define FSMULD   0x069 /* v6 */

Definition at line 110 of file math_32.c.

#define FSQRTD   0x02a /* v7 */

Definition at line 101 of file math_32.c.

#define FSQRTQ   0x02b /* v8 */

Definition at line 85 of file math_32.c.

#define FSQRTS   0x029 /* v7 */

Definition at line 100 of file math_32.c.

#define FSR_AEXC_MASK   (0x1fUL << FSR_AEXC_SHIFT)

Definition at line 128 of file math_32.c.

#define FSR_AEXC_SHIFT   5UL

Definition at line 127 of file math_32.c.

#define FSR_CEXC_MASK   (0x1fUL << FSR_CEXC_SHIFT)

Definition at line 130 of file math_32.c.

#define FSR_CEXC_SHIFT   0UL

Definition at line 129 of file math_32.c.

#define FSR_TEM_MASK   (0x1fUL << FSR_TEM_SHIFT)

Definition at line 126 of file math_32.c.

#define FSR_TEM_SHIFT   23UL

Definition at line 125 of file math_32.c.

#define FSTOD   0x0c9 /* v6 */

Definition at line 112 of file math_32.c.

#define FSTOI   0x0d1 /* v6 */

Definition at line 113 of file math_32.c.

#define FSTOQ   0x0cd /* v8 */

Definition at line 94 of file math_32.c.

#define FSUBD   0x046 /* v6 */

Definition at line 105 of file math_32.c.

#define FSUBQ   0x047 /* v8 */

Definition at line 87 of file math_32.c.

#define FSUBS   0x045 /* v6 */

Definition at line 104 of file math_32.c.

#define TYPE (   dummy,
  r,
  ru,
  b,
  bu,
  a,
  au 
)    type = (au << 2) | (a << 0) | (bu << 5) | (b << 3) | (ru << 8) | (r << 6)

Function Documentation

int do_mathemu ( struct pt_regs regs,
struct task_struct fpt 
)

Definition at line 143 of file math_32.c.