Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
reg_ld_str.c File Reference
#include "fpu_emu.h"
#include <asm/uaccess.h>
#include "fpu_system.h"
#include "exception.h"
#include "reg_constant.h"
#include "control_w.h"
#include "status_w.h"

Go to the source code of this file.

Macros

#define DOUBLE_Emax   1023 /* largest valid exponent */
 
#define DOUBLE_Ebias   1023
 
#define DOUBLE_Emin   (-1022) /* smallest valid exponent */
 
#define SINGLE_Emax   127 /* largest valid exponent */
 
#define SINGLE_Ebias   127
 
#define SINGLE_Emin   (-126) /* smallest valid exponent */
 
#define half_or_more   (eax & 0x80000000)
 
#define frac_part   (eax)
 
#define more_than_half   ((eax & 0x80000001) == 0x80000001)
 

Functions

int FPU_tagof (FPU_REG *ptr)
 
int FPU_load_extended (long double __user *s, int stnr)
 
int FPU_load_double (double __user *dfloat, FPU_REG *loaded_data)
 
int FPU_load_single (float __user *single, FPU_REG *loaded_data)
 
int FPU_load_int64 (long long __user *_s)
 
int FPU_load_int32 (long __user *_s, FPU_REG *loaded_data)
 
int FPU_load_int16 (short __user *_s, FPU_REG *loaded_data)
 
int FPU_load_bcd (u_char __user *s)
 
int FPU_store_extended (FPU_REG *st0_ptr, u_char st0_tag, long double __user *d)
 
int FPU_store_double (FPU_REG *st0_ptr, u_char st0_tag, double __user *dfloat)
 
int FPU_store_single (FPU_REG *st0_ptr, u_char st0_tag, float __user *single)
 
int FPU_store_int64 (FPU_REG *st0_ptr, u_char st0_tag, long long __user *d)
 
int FPU_store_int32 (FPU_REG *st0_ptr, u_char st0_tag, long __user *d)
 
int FPU_store_int16 (FPU_REG *st0_ptr, u_char st0_tag, short __user *d)
 
int FPU_store_bcd (FPU_REG *st0_ptr, u_char st0_tag, u_char __user *d)
 
int FPU_round_to_int (FPU_REG *r, u_char tag)
 
u_char __userfldenv (fpu_addr_modes addr_modes, u_char __user *s)
 
void frstor (fpu_addr_modes addr_modes, u_char __user *data_address)
 
u_char __userfstenv (fpu_addr_modes addr_modes, u_char __user *d)
 
void fsave (fpu_addr_modes addr_modes, u_char __user *data_address)
 

Macro Definition Documentation

#define DOUBLE_Ebias   1023

Definition at line 31 of file reg_ld_str.c.

#define DOUBLE_Emax   1023 /* largest valid exponent */

Definition at line 30 of file reg_ld_str.c.

#define DOUBLE_Emin   (-1022) /* smallest valid exponent */

Definition at line 32 of file reg_ld_str.c.

#define frac_part   (eax)
#define half_or_more   (eax & 0x80000000)
#define more_than_half   ((eax & 0x80000001) == 0x80000001)
#define SINGLE_Ebias   127

Definition at line 35 of file reg_ld_str.c.

#define SINGLE_Emax   127 /* largest valid exponent */

Definition at line 34 of file reg_ld_str.c.

#define SINGLE_Emin   (-126) /* smallest valid exponent */

Definition at line 36 of file reg_ld_str.c.

Function Documentation

u_char __user* fldenv ( fpu_addr_modes  addr_modes,
u_char __user s 
)

Definition at line 1026 of file reg_ld_str.c.

int FPU_load_bcd ( u_char __user s)

Definition at line 297 of file reg_ld_str.c.

int FPU_load_double ( double __user dfloat,
FPU_REG loaded_data 
)

Definition at line 94 of file reg_ld_str.c.

int FPU_load_extended ( long double __user s,
int  stnr 
)

Definition at line 81 of file reg_ld_str.c.

int FPU_load_int16 ( short __user _s,
FPU_REG loaded_data 
)

Definition at line 268 of file reg_ld_str.c.

int FPU_load_int32 ( long __user _s,
FPU_REG loaded_data 
)

Definition at line 239 of file reg_ld_str.c.

int FPU_load_int64 ( long long __user _s)

Definition at line 209 of file reg_ld_str.c.

int FPU_load_single ( float __user single,
FPU_REG loaded_data 
)

Definition at line 155 of file reg_ld_str.c.

int FPU_round_to_int ( FPU_REG r,
u_char  tag 
)

Definition at line 969 of file reg_ld_str.c.

int FPU_store_bcd ( FPU_REG st0_ptr,
u_char  st0_tag,
u_char __user d 
)

Definition at line 894 of file reg_ld_str.c.

int FPU_store_double ( FPU_REG st0_ptr,
u_char  st0_tag,
double __user dfloat 
)

Definition at line 378 of file reg_ld_str.c.

int FPU_store_extended ( FPU_REG st0_ptr,
u_char  st0_tag,
long double __user d 
)

Definition at line 336 of file reg_ld_str.c.

int FPU_store_int16 ( FPU_REG st0_ptr,
u_char  st0_tag,
short __user d 
)

Definition at line 848 of file reg_ld_str.c.

int FPU_store_int32 ( FPU_REG st0_ptr,
u_char  st0_tag,
long __user d 
)

Definition at line 802 of file reg_ld_str.c.

int FPU_store_int64 ( FPU_REG st0_ptr,
u_char  st0_tag,
long long __user d 
)

Definition at line 752 of file reg_ld_str.c.

int FPU_store_single ( FPU_REG st0_ptr,
u_char  st0_tag,
float __user single 
)

Definition at line 563 of file reg_ld_str.c.

int FPU_tagof ( FPU_REG ptr)

Definition at line 52 of file reg_ld_str.c.

void frstor ( fpu_addr_modes  addr_modes,
u_char __user data_address 
)

Definition at line 1119 of file reg_ld_str.c.

void fsave ( fpu_addr_modes  addr_modes,
u_char __user data_address 
)

Definition at line 1198 of file reg_ld_str.c.

u_char __user* fstenv ( fpu_addr_modes  addr_modes,
u_char __user d 
)

Definition at line 1142 of file reg_ld_str.c.