about summary refs log tree commit diff stats
path: root/miasm2/jitter/vm_mngr.c
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-11-10 15:00:01 +0100
committerAjax <commial@gmail.com>2015-11-10 15:00:01 +0100
commit69d5421048a09ae8c13aff48c51a1cc8322ac515 (patch)
treee997c9d4e58b21174f5e466384f74e3289b43284 /miasm2/jitter/vm_mngr.c
parent206d16bad7f4a98b1be30ac9db0c4798e363c550 (diff)
downloadmiasm-69d5421048a09ae8c13aff48c51a1cc8322ac515.tar.gz
miasm-69d5421048a09ae8c13aff48c51a1cc8322ac515.zip
x86/TCC: add `fprem`
Diffstat (limited to 'miasm2/jitter/vm_mngr.c')
-rw-r--r--miasm2/jitter/vm_mngr.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/miasm2/jitter/vm_mngr.c b/miasm2/jitter/vm_mngr.c
index a2c29127..c9fb3eb3 100644
--- a/miasm2/jitter/vm_mngr.c
+++ b/miasm2/jitter/vm_mngr.c
@@ -1243,6 +1243,17 @@ double fabs(double a)
 	return b;
 }
 
+double fprem(double a, double b)
+{
+	double c;
+	c = fmod(a, b);
+#ifdef DEBUG_MIASM_DOUBLE
+	dump_float();
+	printf("%e %% %e -> %e\n", a, b, c);
+#endif
+	return c;
+}
+
 double fchs(double a)
 {
 	double b;