Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
fpopcode.h File Reference

Go to the source code of this file.

Macros

#define BIT_PREINDEX   0x01000000
 
#define BIT_UP   0x00800000
 
#define BIT_WRITE_BACK   0x00200000
 
#define BIT_LOAD   0x00100000
 
#define MASK_CPDT   0x0c000000 /* data processing opcode */
 
#define MASK_OFFSET   0x000000ff
 
#define MASK_TRANSFER_LENGTH   0x00408000
 
#define MASK_REGISTER_COUNT   MASK_TRANSFER_LENGTH
 
#define MASK_COPROCESSOR   0x00000f00
 
#define TRANSFER_SINGLE   0x00000000
 
#define TRANSFER_DOUBLE   0x00008000
 
#define TRANSFER_EXTENDED   0x00400000
 
#define TRANSFER_PACKED   MASK_TRANSFER_LENGTH
 
#define getCoprocessorNumber(opcode)   ((opcode & MASK_COPROCESSOR) >> 8)
 
#define getOffset(opcode)   (opcode & MASK_OFFSET)
 
#define TEST_OPCODE(opcode, mask)   (((opcode) & (mask)) == (mask))
 
#define LOAD_OP(opcode)   TEST_OPCODE((opcode),MASK_CPDT | BIT_LOAD)
 
#define STORE_OP(opcode)   ((opcode & (MASK_CPDT | BIT_LOAD)) == MASK_CPDT)
 
#define LDF_OP(opcode)   (LOAD_OP(opcode) && (getCoprocessorNumber(opcode) == 1))
 
#define LFM_OP(opcode)   (LOAD_OP(opcode) && (getCoprocessorNumber(opcode) == 2))
 
#define STF_OP(opcode)   (STORE_OP(opcode) && (getCoprocessorNumber(opcode) == 1))
 
#define SFM_OP(opcode)   (STORE_OP(opcode) && (getCoprocessorNumber(opcode) == 2))
 
#define PREINDEXED(opcode)   ((opcode & BIT_PREINDEX) != 0)
 
#define POSTINDEXED(opcode)   ((opcode & BIT_PREINDEX) == 0)
 
#define BIT_UP_SET(opcode)   ((opcode & BIT_UP) != 0)
 
#define BIT_UP_CLEAR(opcode)   ((opcode & BIT_DOWN) == 0)
 
#define WRITE_BACK(opcode)   ((opcode & BIT_WRITE_BACK) != 0)
 
#define LOAD(opcode)   ((opcode & BIT_LOAD) != 0)
 
#define STORE(opcode)   ((opcode & BIT_LOAD) == 0)
 
#define BIT_MONADIC   0x00008000
 
#define BIT_CONSTANT   0x00000008
 
#define CONSTANT_FM(opcode)   ((opcode & BIT_CONSTANT) != 0)
 
#define MONADIC_INSTRUCTION(opcode)   ((opcode & BIT_MONADIC) != 0)
 
#define MASK_CPDO   0x0e000000 /* arithmetic opcode */
 
#define MASK_ARITHMETIC_OPCODE   0x00f08000
 
#define MASK_DESTINATION_SIZE   0x00080080
 
#define ADF_CODE   0x00000000
 
#define MUF_CODE   0x00100000
 
#define SUF_CODE   0x00200000
 
#define RSF_CODE   0x00300000
 
#define DVF_CODE   0x00400000
 
#define RDF_CODE   0x00500000
 
#define POW_CODE   0x00600000
 
#define RPW_CODE   0x00700000
 
#define RMF_CODE   0x00800000
 
#define FML_CODE   0x00900000
 
#define FDV_CODE   0x00a00000
 
#define FRD_CODE   0x00b00000
 
#define POL_CODE   0x00c00000
 
#define MVF_CODE   0x00008000
 
#define MNF_CODE   0x00108000
 
#define ABS_CODE   0x00208000
 
#define RND_CODE   0x00308000
 
#define SQT_CODE   0x00408000
 
#define LOG_CODE   0x00508000
 
#define LGN_CODE   0x00608000
 
#define EXP_CODE   0x00708000
 
#define SIN_CODE   0x00808000
 
#define COS_CODE   0x00908000
 
#define TAN_CODE   0x00a08000
 
#define ASN_CODE   0x00b08000
 
#define ACS_CODE   0x00c08000
 
#define ATN_CODE   0x00d08000
 
#define URD_CODE   0x00e08000
 
#define NRM_CODE   0x00f08000
 
#define MASK_CPRT   0x0e000010 /* register transfer opcode */
 
#define MASK_CPRT_CODE   0x00f00000
 
#define FLT_CODE   0x00000000
 
#define FIX_CODE   0x00100000
 
#define WFS_CODE   0x00200000
 
#define RFS_CODE   0x00300000
 
#define WFC_CODE   0x00400000
 
#define RFC_CODE   0x00500000
 
#define CMF_CODE   0x00900000
 
#define CNF_CODE   0x00b00000
 
#define CMFE_CODE   0x00d00000
 
#define CNFE_CODE   0x00f00000
 
#define MASK_Rd   0x0000f000
 
#define MASK_Rn   0x000f0000
 
#define MASK_Fd   0x00007000
 
#define MASK_Fm   0x00000007
 
#define MASK_Fn   0x00070000
 
#define CC_MASK   0xf0000000
 
#define CC_NEGATIVE   0x80000000
 
#define CC_ZERO   0x40000000
 
#define CC_CARRY   0x20000000
 
#define CC_OVERFLOW   0x10000000
 
#define CC_EQ   0x00000000
 
#define CC_NE   0x10000000
 
#define CC_CS   0x20000000
 
#define CC_HS   CC_CS
 
#define CC_CC   0x30000000
 
#define CC_LO   CC_CC
 
#define CC_MI   0x40000000
 
#define CC_PL   0x50000000
 
#define CC_VS   0x60000000
 
#define CC_VC   0x70000000
 
#define CC_HI   0x80000000
 
#define CC_LS   0x90000000
 
#define CC_GE   0xa0000000
 
#define CC_LT   0xb0000000
 
#define CC_GT   0xc0000000
 
#define CC_LE   0xd0000000
 
#define CC_AL   0xe0000000
 
#define CC_NV   0xf0000000
 
#define MASK_ROUNDING_MODE   0x00000060
 
#define ROUND_TO_NEAREST   0x00000000
 
#define ROUND_TO_PLUS_INFINITY   0x00000020
 
#define ROUND_TO_MINUS_INFINITY   0x00000040
 
#define ROUND_TO_ZERO   0x00000060
 
#define MASK_ROUNDING_PRECISION   0x00080080
 
#define ROUND_SINGLE   0x00000000
 
#define ROUND_DOUBLE   0x00000080
 
#define ROUND_EXTENDED   0x00080000
 
#define getCondition(opcode)   (opcode >> 28)
 
#define getRn(opcode)   ((opcode & MASK_Rn) >> 16)
 
#define getFd(opcode)   ((opcode & MASK_Fd) >> 12)
 
#define getFn(opcode)   ((opcode & MASK_Fn) >> 16)
 
#define getFm(opcode)   (opcode & MASK_Fm)
 
#define getRd(opcode)   ((opcode & MASK_Rd) >> 12)
 
#define getRoundingMode(opcode)   ((opcode & MASK_ROUNDING_MODE) >> 5)
 

Variables

const float64 float64Constant []
 
const float32 float32Constant []
 

Macro Definition Documentation

#define ABS_CODE   0x00208000

Definition at line 266 of file fpopcode.h.

#define ACS_CODE   0x00c08000

Definition at line 276 of file fpopcode.h.

#define ADF_CODE   0x00000000

Definition at line 246 of file fpopcode.h.

#define ASN_CODE   0x00b08000

Definition at line 275 of file fpopcode.h.

#define ATN_CODE   0x00d08000

Definition at line 277 of file fpopcode.h.

#define BIT_CONSTANT   0x00000008

Definition at line 235 of file fpopcode.h.

#define BIT_LOAD   0x00100000

Definition at line 188 of file fpopcode.h.

#define BIT_MONADIC   0x00008000

Definition at line 234 of file fpopcode.h.

#define BIT_PREINDEX   0x01000000

Definition at line 185 of file fpopcode.h.

#define BIT_UP   0x00800000

Definition at line 186 of file fpopcode.h.

#define BIT_UP_CLEAR (   opcode)    ((opcode & BIT_DOWN) == 0)

Definition at line 223 of file fpopcode.h.

#define BIT_UP_SET (   opcode)    ((opcode & BIT_UP) != 0)

Definition at line 222 of file fpopcode.h.

#define BIT_WRITE_BACK   0x00200000

Definition at line 187 of file fpopcode.h.

#define CC_AL   0xe0000000

Definition at line 335 of file fpopcode.h.

#define CC_CARRY   0x20000000

Definition at line 317 of file fpopcode.h.

#define CC_CC   0x30000000

Definition at line 323 of file fpopcode.h.

#define CC_CS   0x20000000

Definition at line 321 of file fpopcode.h.

#define CC_EQ   0x00000000

Definition at line 319 of file fpopcode.h.

#define CC_GE   0xa0000000

Definition at line 331 of file fpopcode.h.

#define CC_GT   0xc0000000

Definition at line 333 of file fpopcode.h.

#define CC_HI   0x80000000

Definition at line 329 of file fpopcode.h.

#define CC_HS   CC_CS

Definition at line 322 of file fpopcode.h.

#define CC_LE   0xd0000000

Definition at line 334 of file fpopcode.h.

#define CC_LO   CC_CC

Definition at line 324 of file fpopcode.h.

#define CC_LS   0x90000000

Definition at line 330 of file fpopcode.h.

#define CC_LT   0xb0000000

Definition at line 332 of file fpopcode.h.

#define CC_MASK   0xf0000000

Definition at line 314 of file fpopcode.h.

#define CC_MI   0x40000000

Definition at line 325 of file fpopcode.h.

#define CC_NE   0x10000000

Definition at line 320 of file fpopcode.h.

#define CC_NEGATIVE   0x80000000

Definition at line 315 of file fpopcode.h.

#define CC_NV   0xf0000000

Definition at line 336 of file fpopcode.h.

#define CC_OVERFLOW   0x10000000

Definition at line 318 of file fpopcode.h.

#define CC_PL   0x50000000

Definition at line 326 of file fpopcode.h.

#define CC_VC   0x70000000

Definition at line 328 of file fpopcode.h.

#define CC_VS   0x60000000

Definition at line 327 of file fpopcode.h.

#define CC_ZERO   0x40000000

Definition at line 316 of file fpopcode.h.

#define CMF_CODE   0x00900000

Definition at line 295 of file fpopcode.h.

#define CMFE_CODE   0x00d00000

Definition at line 297 of file fpopcode.h.

#define CNF_CODE   0x00b00000

Definition at line 296 of file fpopcode.h.

#define CNFE_CODE   0x00f00000

Definition at line 298 of file fpopcode.h.

#define CONSTANT_FM (   opcode)    ((opcode & BIT_CONSTANT) != 0)

Definition at line 237 of file fpopcode.h.

#define COS_CODE   0x00908000

Definition at line 273 of file fpopcode.h.

#define DVF_CODE   0x00400000

Definition at line 250 of file fpopcode.h.

#define EXP_CODE   0x00708000

Definition at line 271 of file fpopcode.h.

#define FDV_CODE   0x00a00000

Definition at line 256 of file fpopcode.h.

#define FIX_CODE   0x00100000

Definition at line 290 of file fpopcode.h.

#define FLT_CODE   0x00000000

Definition at line 289 of file fpopcode.h.

#define FML_CODE   0x00900000

Definition at line 255 of file fpopcode.h.

#define FRD_CODE   0x00b00000

Definition at line 257 of file fpopcode.h.

#define getCondition (   opcode)    (opcode >> 28)

Definition at line 351 of file fpopcode.h.

#define getCoprocessorNumber (   opcode)    ((opcode & MASK_COPROCESSOR) >> 8)

Definition at line 204 of file fpopcode.h.

#define getFd (   opcode)    ((opcode & MASK_Fd) >> 12)

Definition at line 357 of file fpopcode.h.

#define getFm (   opcode)    (opcode & MASK_Fm)

Definition at line 363 of file fpopcode.h.

#define getFn (   opcode)    ((opcode & MASK_Fn) >> 16)

Definition at line 360 of file fpopcode.h.

#define getOffset (   opcode)    (opcode & MASK_OFFSET)

Definition at line 207 of file fpopcode.h.

#define getRd (   opcode)    ((opcode & MASK_Rd) >> 12)

Definition at line 366 of file fpopcode.h.

#define getRn (   opcode)    ((opcode & MASK_Rn) >> 16)

Definition at line 354 of file fpopcode.h.

#define getRoundingMode (   opcode)    ((opcode & MASK_ROUNDING_MODE) >> 5)

Definition at line 369 of file fpopcode.h.

#define LDF_OP (   opcode)    (LOAD_OP(opcode) && (getCoprocessorNumber(opcode) == 1))

Definition at line 215 of file fpopcode.h.

#define LFM_OP (   opcode)    (LOAD_OP(opcode) && (getCoprocessorNumber(opcode) == 2))

Definition at line 216 of file fpopcode.h.

#define LGN_CODE   0x00608000

Definition at line 270 of file fpopcode.h.

#define LOAD (   opcode)    ((opcode & BIT_LOAD) != 0)

Definition at line 225 of file fpopcode.h.

#define LOAD_OP (   opcode)    TEST_OPCODE((opcode),MASK_CPDT | BIT_LOAD)

Definition at line 212 of file fpopcode.h.

#define LOG_CODE   0x00508000

Definition at line 269 of file fpopcode.h.

#define MASK_ARITHMETIC_OPCODE   0x00f08000

Definition at line 242 of file fpopcode.h.

#define MASK_COPROCESSOR   0x00000f00

Definition at line 195 of file fpopcode.h.

#define MASK_CPDO   0x0e000000 /* arithmetic opcode */

Definition at line 241 of file fpopcode.h.

#define MASK_CPDT   0x0c000000 /* data processing opcode */

Definition at line 191 of file fpopcode.h.

#define MASK_CPRT   0x0e000010 /* register transfer opcode */

Definition at line 287 of file fpopcode.h.

#define MASK_CPRT_CODE   0x00f00000

Definition at line 288 of file fpopcode.h.

#define MASK_DESTINATION_SIZE   0x00080080

Definition at line 243 of file fpopcode.h.

#define MASK_Fd   0x00007000

Definition at line 309 of file fpopcode.h.

#define MASK_Fm   0x00000007

Definition at line 310 of file fpopcode.h.

#define MASK_Fn   0x00070000

Definition at line 311 of file fpopcode.h.

#define MASK_OFFSET   0x000000ff

Definition at line 192 of file fpopcode.h.

#define MASK_Rd   0x0000f000

Definition at line 307 of file fpopcode.h.

#define MASK_REGISTER_COUNT   MASK_TRANSFER_LENGTH

Definition at line 194 of file fpopcode.h.

#define MASK_Rn   0x000f0000

Definition at line 308 of file fpopcode.h.

#define MASK_ROUNDING_MODE   0x00000060

Definition at line 339 of file fpopcode.h.

#define MASK_ROUNDING_PRECISION   0x00080080

Definition at line 345 of file fpopcode.h.

#define MASK_TRANSFER_LENGTH   0x00408000

Definition at line 193 of file fpopcode.h.

#define MNF_CODE   0x00108000

Definition at line 265 of file fpopcode.h.

#define MONADIC_INSTRUCTION (   opcode)    ((opcode & BIT_MONADIC) != 0)

Definition at line 238 of file fpopcode.h.

#define MUF_CODE   0x00100000

Definition at line 247 of file fpopcode.h.

#define MVF_CODE   0x00008000

Definition at line 264 of file fpopcode.h.

#define NRM_CODE   0x00f08000

Definition at line 279 of file fpopcode.h.

#define POL_CODE   0x00c00000

Definition at line 258 of file fpopcode.h.

#define POSTINDEXED (   opcode)    ((opcode & BIT_PREINDEX) == 0)

Definition at line 221 of file fpopcode.h.

#define POW_CODE   0x00600000

Definition at line 252 of file fpopcode.h.

#define PREINDEXED (   opcode)    ((opcode & BIT_PREINDEX) != 0)

Definition at line 220 of file fpopcode.h.

#define RDF_CODE   0x00500000

Definition at line 251 of file fpopcode.h.

#define RFC_CODE   0x00500000

Definition at line 294 of file fpopcode.h.

#define RFS_CODE   0x00300000

Definition at line 292 of file fpopcode.h.

#define RMF_CODE   0x00800000

Definition at line 254 of file fpopcode.h.

#define RND_CODE   0x00308000

Definition at line 267 of file fpopcode.h.

#define ROUND_DOUBLE   0x00000080

Definition at line 347 of file fpopcode.h.

#define ROUND_EXTENDED   0x00080000

Definition at line 348 of file fpopcode.h.

#define ROUND_SINGLE   0x00000000

Definition at line 346 of file fpopcode.h.

#define ROUND_TO_MINUS_INFINITY   0x00000040

Definition at line 342 of file fpopcode.h.

#define ROUND_TO_NEAREST   0x00000000

Definition at line 340 of file fpopcode.h.

#define ROUND_TO_PLUS_INFINITY   0x00000020

Definition at line 341 of file fpopcode.h.

#define ROUND_TO_ZERO   0x00000060

Definition at line 343 of file fpopcode.h.

#define RPW_CODE   0x00700000

Definition at line 253 of file fpopcode.h.

#define RSF_CODE   0x00300000

Definition at line 249 of file fpopcode.h.

#define SFM_OP (   opcode)    (STORE_OP(opcode) && (getCoprocessorNumber(opcode) == 2))

Definition at line 218 of file fpopcode.h.

#define SIN_CODE   0x00808000

Definition at line 272 of file fpopcode.h.

#define SQT_CODE   0x00408000

Definition at line 268 of file fpopcode.h.

#define STF_OP (   opcode)    (STORE_OP(opcode) && (getCoprocessorNumber(opcode) == 1))

Definition at line 217 of file fpopcode.h.

#define STORE (   opcode)    ((opcode & BIT_LOAD) == 0)

Definition at line 226 of file fpopcode.h.

#define STORE_OP (   opcode)    ((opcode & (MASK_CPDT | BIT_LOAD)) == MASK_CPDT)

Definition at line 213 of file fpopcode.h.

#define SUF_CODE   0x00200000

Definition at line 248 of file fpopcode.h.

#define TAN_CODE   0x00a08000

Definition at line 274 of file fpopcode.h.

#define TEST_OPCODE (   opcode,
  mask 
)    (((opcode) & (mask)) == (mask))

Definition at line 210 of file fpopcode.h.

#define TRANSFER_DOUBLE   0x00008000

Definition at line 199 of file fpopcode.h.

#define TRANSFER_EXTENDED   0x00400000

Definition at line 200 of file fpopcode.h.

#define TRANSFER_PACKED   MASK_TRANSFER_LENGTH

Definition at line 201 of file fpopcode.h.

#define TRANSFER_SINGLE   0x00000000

Definition at line 198 of file fpopcode.h.

#define URD_CODE   0x00e08000

Definition at line 278 of file fpopcode.h.

#define WFC_CODE   0x00400000

Definition at line 293 of file fpopcode.h.

#define WFS_CODE   0x00200000

Definition at line 291 of file fpopcode.h.

#define WRITE_BACK (   opcode)    ((opcode & BIT_WRITE_BACK) != 0)

Definition at line 224 of file fpopcode.h.

Variable Documentation

const float32 float32Constant[]

Definition at line 53 of file fpopcode.c.

const float64 float64Constant[]

Definition at line 42 of file fpopcode.c.