mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-3211: Refactored pcodetest scripts
This commit is contained in:
parent
8936bf9d55
commit
8004108681
7 changed files with 95 additions and 35 deletions
|
@ -16,6 +16,19 @@
|
|||
#include "pcode_test.h"
|
||||
#ifdef HAS_DOUBLE
|
||||
|
||||
f8 f8_compareLogic(f8 lhs, f8 rhs)
|
||||
{
|
||||
if (lhs < 0)
|
||||
lhs += 2;
|
||||
if (lhs > 0)
|
||||
lhs += 4;
|
||||
if (lhs == 0)
|
||||
lhs += 8;
|
||||
if (lhs != rhs)
|
||||
lhs += 16;
|
||||
return lhs;
|
||||
}
|
||||
|
||||
/* Comparison operators */
|
||||
f8 f8_greaterThan(f8 lhs, f8 rhs)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue