Исправления
This commit is contained in:
parent
e9558ff977
commit
642d39f2a9
11 changed files with 54 additions and 54 deletions
|
|
@ -129,12 +129,12 @@ int bgc_fp32_quaternion_get_exponation(BGC_FP32_Quaternion* power, const BGC_FP3
|
|||
|
||||
// isnan(square_modulus) means checking for NaN value at square_modulus
|
||||
if (isnan(square_modulus)) {
|
||||
return BGC_FAILED;
|
||||
return BGC_FAILURE;
|
||||
}
|
||||
|
||||
if (square_vector <= BGC_FP32_SQUARE_EPSILON) {
|
||||
if (base->s0 < 0.0f) {
|
||||
return BGC_FAILED;
|
||||
return BGC_FAILURE;
|
||||
}
|
||||
|
||||
power->s0 = powf(base->s0, exponent);
|
||||
|
|
@ -170,12 +170,12 @@ int bgc_fp64_quaternion_get_exponation(BGC_FP64_Quaternion* power, const BGC_FP6
|
|||
|
||||
// isnan(square_modulus) means checking for NaN value at square_modulus
|
||||
if (isnan(square_modulus)) {
|
||||
return BGC_FAILED;
|
||||
return BGC_FAILURE;
|
||||
}
|
||||
|
||||
if (square_vector <= BGC_FP64_SQUARE_EPSILON) {
|
||||
if (base->s0 < 0.0) {
|
||||
return BGC_FAILED;
|
||||
return BGC_FAILURE;
|
||||
}
|
||||
|
||||
power->s0 = pow(base->s0, exponent);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue