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:01:14 +0100
committerAjax <commial@gmail.com>2015-11-10 15:01:14 +0100
commit4892fd18de5dff99267f43e584717518d3003a0d (patch)
tree3d320b02931a3863f070f85115d665d815f97352 /miasm2/jitter/vm_mngr.c
parent70ddb1057b3543b0fd0f656c3f67f33d067fb5ad (diff)
downloadmiasm-4892fd18de5dff99267f43e584717518d3003a0d.tar.gz
miasm-4892fd18de5dff99267f43e584717518d3003a0d.zip
x86/TCC: add `fpatan`
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 b7de5639..16e0a56f 100644
--- a/miasm2/jitter/vm_mngr.c
+++ b/miasm2/jitter/vm_mngr.c
@@ -1276,6 +1276,17 @@ double fyl2x(double a, double b)
 	return c;
 }
 
+double fpatan(double a, double b)
+{
+	double c;
+	c = atan2(b, a);
+#ifdef DEBUG_MIASM_DOUBLE
+	dump_float();
+	printf("arctan(%e / %e) -> %e\n", b, a, c);
+#endif
+	return c;
+}
+
 unsigned int fcom_c0(double a, double b)
 {
 	if (a>=b)