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/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <asm/uaccess.h>
#include "sfp-util.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.

Macros

#define OPC_PAL   0x00
 
#define OPC_INTA   0x10
 
#define OPC_INTL   0x11
 
#define OPC_INTS   0x12
 
#define OPC_INTM   0x13
 
#define OPC_FLTC   0x14
 
#define OPC_FLTV   0x15
 
#define OPC_FLTI   0x16
 
#define OPC_FLTL   0x17
 
#define OPC_MISC   0x18
 
#define OPC_JSR   0x1a
 
#define FOP_SRC_S   0
 
#define FOP_SRC_T   2
 
#define FOP_SRC_Q   3
 
#define FOP_FNC_ADDx   0
 
#define FOP_FNC_CVTQL   0
 
#define FOP_FNC_SUBx   1
 
#define FOP_FNC_MULx   2
 
#define FOP_FNC_DIVx   3
 
#define FOP_FNC_CMPxUN   4
 
#define FOP_FNC_CMPxEQ   5
 
#define FOP_FNC_CMPxLT   6
 
#define FOP_FNC_CMPxLE   7
 
#define FOP_FNC_SQRTx   11
 
#define FOP_FNC_CVTxS   12
 
#define FOP_FNC_CVTxT   14
 
#define FOP_FNC_CVTxQ   15
 
#define MISC_TRAPB   0x0000
 
#define MISC_EXCB   0x0400
 

Functions

unsigned long alpha_read_fp_reg (unsigned long reg)
 
void alpha_write_fp_reg (unsigned long reg, unsigned long val)
 
unsigned long alpha_read_fp_reg_s (unsigned long reg)
 
void alpha_write_fp_reg_s (unsigned long reg, unsigned long val)
 
long alpha_fp_emul (unsigned long pc)
 
long alpha_fp_emul_imprecise (struct pt_regs *regs, unsigned long write_mask)
 

Macro Definition Documentation

#define FOP_FNC_ADDx   0

Definition at line 29 of file math.c.

#define FOP_FNC_CMPxEQ   5

Definition at line 35 of file math.c.

#define FOP_FNC_CMPxLE   7

Definition at line 37 of file math.c.

#define FOP_FNC_CMPxLT   6

Definition at line 36 of file math.c.

#define FOP_FNC_CMPxUN   4

Definition at line 34 of file math.c.

#define FOP_FNC_CVTQL   0

Definition at line 30 of file math.c.

#define FOP_FNC_CVTxQ   15

Definition at line 41 of file math.c.

#define FOP_FNC_CVTxS   12

Definition at line 39 of file math.c.

#define FOP_FNC_CVTxT   14

Definition at line 40 of file math.c.

#define FOP_FNC_DIVx   3

Definition at line 33 of file math.c.

#define FOP_FNC_MULx   2

Definition at line 32 of file math.c.

#define FOP_FNC_SQRTx   11

Definition at line 38 of file math.c.

#define FOP_FNC_SUBx   1

Definition at line 31 of file math.c.

#define FOP_SRC_Q   3

Definition at line 27 of file math.c.

#define FOP_SRC_S   0

Definition at line 25 of file math.c.

#define FOP_SRC_T   2

Definition at line 26 of file math.c.

#define MISC_EXCB   0x0400

Definition at line 44 of file math.c.

#define MISC_TRAPB   0x0000

Definition at line 43 of file math.c.

#define OPC_FLTC   0x14

Definition at line 18 of file math.c.

#define OPC_FLTI   0x16

Definition at line 20 of file math.c.

#define OPC_FLTL   0x17

Definition at line 21 of file math.c.

#define OPC_FLTV   0x15

Definition at line 19 of file math.c.

#define OPC_INTA   0x10

Definition at line 14 of file math.c.

#define OPC_INTL   0x11

Definition at line 15 of file math.c.

#define OPC_INTM   0x13

Definition at line 17 of file math.c.

#define OPC_INTS   0x12

Definition at line 16 of file math.c.

#define OPC_JSR   0x1a

Definition at line 23 of file math.c.

#define OPC_MISC   0x18

Definition at line 22 of file math.c.

#define OPC_PAL   0x00

Definition at line 13 of file math.c.

Function Documentation

long alpha_fp_emul ( unsigned long  pc)

Definition at line 98 of file math.c.

long alpha_fp_emul_imprecise ( struct pt_regs regs,
unsigned long  write_mask 
)

Definition at line 337 of file math.c.

unsigned long alpha_read_fp_reg ( unsigned long  reg)

Definition at line 14 of file fpreg.c.

unsigned long alpha_read_fp_reg_s ( unsigned long  reg)

Definition at line 108 of file fpreg.c.

void alpha_write_fp_reg ( unsigned long  reg,
unsigned long  val 
)

Definition at line 63 of file fpreg.c.

void alpha_write_fp_reg_s ( unsigned long  reg,
unsigned long  val 
)

Definition at line 157 of file fpreg.c.