| 1665 | } |
| 1666 | |
| 1667 | const char* ExecutorX86::GetResult() |
| 1668 | { |
| 1669 | long long combined = (long long)(((unsigned long long)(unsigned)NULLC::runResult << 32ull) + (unsigned long long)(unsigned)NULLC::runResult2); |
| 1670 | |
| 1671 | switch(NULLC::runResultType) |
| 1672 | { |
| 1673 | case OTYPE_DOUBLE: |
| 1674 | SafeSprintf(execResult, 64, "%f", *(double*)(&combined)); |
| 1675 | break; |
| 1676 | case OTYPE_LONG: |
| 1677 | SafeSprintf(execResult, 64, "%lldL", combined); |
| 1678 | break; |
| 1679 | case OTYPE_INT: |
| 1680 | SafeSprintf(execResult, 64, "%d", NULLC::runResult); |
| 1681 | break; |
| 1682 | default: |
| 1683 | SafeSprintf(execResult, 64, "no return value"); |
| 1684 | break; |
| 1685 | } |
| 1686 | return execResult; |
| 1687 | } |
| 1688 | int ExecutorX86::GetResultInt() |
| 1689 | { |
| 1690 | assert(NULLC::runResultType == OTYPE_INT); |
nothing calls this directly
no test coverage detected