pspsdk-1.0+beta2
|
#include "pspfpu.h"
Functions | |
uint32_t | pspfpu_get_fcr31 (void) |
Get the current value of the control/status register. | |
void | pspfpu_set_fcr31 (uint32_t var) |
Set the current value of the control/status register. | |
void | pspfpu_set_roundmode (enum FpuRoundMode mode) |
Set the current round mode. | |
enum FpuRoundMode | pspfpu_get_roundmode (void) |
Get the current round mode. | |
uint32_t | pspfpu_get_flags (void) |
Get the exception flags (set when an exception occurs but the actual exception bit is not enabled) | |
void | pspfpu_clear_flags (uint32_t clear) |
Clear the flags bits. | |
uint32_t | pspfpu_get_enable (void) |
Get the exception enable flags. | |
void | pspfpu_set_enable (uint32_t enable) |
Set the enable flags bits. | |
uint32_t | pspfpu_get_cause (void) |
Get the cause bits (only useful if you installed your own exception handler) | |
void | pspfpu_clear_cause (uint32_t clear) |
Clear the cause bits. | |
uint32_t | pspfpu_get_fs (void) |
Get the current value of the FS bit (if FS is 0 then an exception occurs with denormalized values, if 1 then they are rewritten as 0. | |
void | pspfpu_set_fs (uint32_t fs) |
Set the FS bit. | |
uint32_t | pspfpu_get_condbits (void) |
Get the condition flags (8 bits) | |
void | pspfpu_clear_condbits (uint32_t clear) |
Clear the condition bits. |
void pspfpu_clear_cause | ( | uint32_t | clear | ) |
Clear the cause bits.
clear | - Bitmask of the bits to clear, one or more of FpuExceptions |
References FPU_CAUSE_POS, pspfpu_get_fcr31(), pspfpu_set_fcr31(), and uint32_t.
void pspfpu_clear_condbits | ( | uint32_t | clear | ) |
Clear the condition bits.
clear | - Bitmask of the bits to clear |
References FPU_CC0_POS, FPU_CC17_POS, pspfpu_get_fcr31(), pspfpu_set_fcr31(), and uint32_t.
void pspfpu_clear_flags | ( | uint32_t | clear | ) |
Clear the flags bits.
clear | - Bitmask of the bits to clear, one or more of FpuExceptions |
References FPU_FLAGS_POS, pspfpu_get_fcr31(), pspfpu_set_fcr31(), and uint32_t.
uint32_t pspfpu_get_cause | ( | void | ) |
Get the cause bits (only useful if you installed your own exception handler)
References FPU_CAUSE_MASK, FPU_CAUSE_POS, pspfpu_get_fcr31(), and uint32_t.
uint32_t pspfpu_get_condbits | ( | void | ) |
Get the condition flags (8 bits)
References FPU_CC0_MASK, FPU_CC0_POS, FPU_CC17_MASK, FPU_CC17_POS, pspfpu_get_fcr31(), and uint32_t.
uint32_t pspfpu_get_enable | ( | void | ) |
Get the exception enable flags.
References FPU_ENABLE_MASK, FPU_ENABLE_POS, pspfpu_get_fcr31(), and uint32_t.
uint32_t pspfpu_get_fcr31 | ( | void | ) |
Get the current value of the control/status register.
References uint32_t.
Referenced by pspfpu_clear_cause(), pspfpu_clear_condbits(), pspfpu_clear_flags(), pspfpu_get_cause(), pspfpu_get_condbits(), pspfpu_get_enable(), pspfpu_get_flags(), pspfpu_get_fs(), pspfpu_get_roundmode(), pspfpu_set_enable(), pspfpu_set_fs(), and pspfpu_set_roundmode().
uint32_t pspfpu_get_flags | ( | void | ) |
Get the exception flags (set when an exception occurs but the actual exception bit is not enabled)
References FPU_FLAGS_MASK, FPU_FLAGS_POS, pspfpu_get_fcr31(), and uint32_t.
uint32_t pspfpu_get_fs | ( | void | ) |
Get the current value of the FS bit (if FS is 0 then an exception occurs with denormalized values, if 1 then they are rewritten as 0.
References FPU_FS_MASK, FPU_FS_POS, pspfpu_get_fcr31(), and uint32_t.
enum FpuRoundMode pspfpu_get_roundmode | ( | void | ) |
Get the current round mode.
References FPU_RM_MASK, and pspfpu_get_fcr31().
void pspfpu_set_enable | ( | uint32_t | enable | ) |
Set the enable flags bits.
enable | - Bitmask of exceptions to enable, zero or more of FpuExceptions |
References FPU_ENABLE_MASK, FPU_ENABLE_POS, pspfpu_get_fcr31(), pspfpu_set_fcr31(), and uint32_t.
void pspfpu_set_fcr31 | ( | uint32_t | var | ) |
Set the current value of the control/status register.
var | - The value to set. |
Referenced by pspfpu_clear_cause(), pspfpu_clear_condbits(), pspfpu_clear_flags(), pspfpu_set_enable(), pspfpu_set_fs(), and pspfpu_set_roundmode().
void pspfpu_set_fs | ( | uint32_t | fs | ) |
Set the FS bit.
fs | - 0 or 1 to unset or set fs |
References FPU_FS_MASK, FPU_FS_POS, pspfpu_get_fcr31(), pspfpu_set_fcr31(), and uint32_t.
void pspfpu_set_roundmode | ( | enum FpuRoundMode | mode | ) |
Set the current round mode.
mode | - The rounding mode to set, one of FpuRoundMode |
References FPU_RM_MASK, pspfpu_get_fcr31(), pspfpu_set_fcr31(), and uint32_t.