Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/expr_pylike_eval.c
| Context not available. | |||||
| if (jmp_gap >= 1 && prev_ops[-1].opcode == OPCODE_CONST) { | if (jmp_gap >= 1 && prev_ops[-1].opcode == OPCODE_CONST) { | ||||
| UnaryOpFunc func = funcptr; | UnaryOpFunc func = funcptr; | ||||
| /* volatile because some compilers overly agressive optimize this call out. | double result = func(prev_ops[-1].arg.dval); | ||||
| * see D6012 for details. */ | |||||
| volatile double result = func(prev_ops[-1].arg.dval); | |||||
| if (fetestexcept(FE_DIVBYZERO | FE_INVALID) == 0) { | if (fetestexcept(FE_DIVBYZERO | FE_INVALID) == 0) { | ||||
| prev_ops[-1].arg.dval = result; | prev_ops[-1].arg.dval = result; | ||||
| Context not available. | |||||
| prev_ops[-1].opcode == OPCODE_CONST) { | prev_ops[-1].opcode == OPCODE_CONST) { | ||||
| BinaryOpFunc func = funcptr; | BinaryOpFunc func = funcptr; | ||||
| /* volatile because some compilers overly agressive optimize this call out. | double result = func(prev_ops[-2].arg.dval, prev_ops[-1].arg.dval); | ||||
| * see D6012 for details. */ | |||||
| volatile double result = func(prev_ops[-2].arg.dval, prev_ops[-1].arg.dval); | |||||
| if (fetestexcept(FE_DIVBYZERO | FE_INVALID) == 0) { | if (fetestexcept(FE_DIVBYZERO | FE_INVALID) == 0) { | ||||
| prev_ops[-2].arg.dval = result; | prev_ops[-2].arg.dval = result; | ||||
| Context not available. | |||||