dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and to


From: Klaus Treichel
Subject: [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 26259432498c1ec34b56c6084700ef4f43886d07
Date: Tue, 06 Apr 2010 08:08:43 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET engine, compilers and tools (pnet)".

The branch, master has been updated
       via  26259432498c1ec34b56c6084700ef4f43886d07 (commit)
      from  33391f26371084da3a273e06074a924e02ae4267 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/pnet.git/commit/?id=26259432498c1ec34b56c6084700ef4f43886d07

commit 26259432498c1ec34b56c6084700ef4f43886d07
Author: Klaus Treichel <address@hidden>
Date:   Tue Apr 6 10:08:30 2010 +0200

    Add macros for more unary floatingpoint operations for x86 and fix a typo.

diff --git a/ChangeLog b/ChangeLog
index 24ad317..9961e44 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
 
        * engine/md_amd64.h: Add macros for unary float operations.
 
+       * engine/md_x86.h: Add macros for unary float operations.
+
        * engine/unroll_arith.c (COP_PREFIX_COS, COP_PREFIX_SIN, 
COP_PREFIX_TAN):
        Add unroller support for these cvm opcodes.
 
diff --git a/engine/md_amd64.h b/engine/md_amd64.h
index 9ef150f..ee00b34 100644
--- a/engine/md_amd64.h
+++ b/engine/md_amd64.h
@@ -803,7 +803,7 @@ extern md_inst_ptr _md_amd64_mov_memindex_reg_byte
                        } while (0)
 
 /*
- * Sqare root of a floatingpoint value
+ * Square root of a floatingpoint value
  */
 #define md_sqrt_reg_float(inst,reg) \
                        do { \
diff --git a/engine/md_x86.h b/engine/md_x86.h
index 1748063..3fce817 100644
--- a/engine/md_x86.h
+++ b/engine/md_x86.h
@@ -1,7 +1,7 @@
 /*
  * md_x86.h - Machine-dependent definitions for x86.
  *
- * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
+ * Copyright (C) 2003, 2010  Southern Storm Software, Pty Ltd.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -836,6 +836,46 @@ extern md_inst_ptr _md_x86_mov_memindex_reg_byte
                                                                         1, 
(reg), 2); \
                        } while (0)
 
+/*
+ * Absolute of a floatinpoint value
+ */
+#define md_abs_reg_float(inst,reg) \
+                       do { \
+                               x86_fabs((inst)); \
+                       } while (0)
+
+/*
+ * Square root of a floatingpoint value
+ */
+#define md_sqrt_reg_float(inst,reg) \
+                       do { \
+                               x86_fsqrt((inst)); \
+                       } while (0)
+
+/*
+ * Sine of a floatingpoint value
+ */
+#define md_sin_reg_float(inst,reg) \
+                       do { \
+                               x86_fsin((inst)); \
+                       } while (0)
+
+/*
+ * Cosine of a floatingpoint value
+ */
+#define md_cos_reg_float(inst,reg) \
+                       do { \
+                               x86_fcos((inst)); \
+                       } while (0)
+
+/*
+ * Tangent of a floatingpoint value
+ */
+#define md_tan_reg_float(inst,reg) \
+                       do { \
+                               x86_fptan((inst)); \
+                       } while (0)
+
 #ifdef __cplusplus
 };
 #endif

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    2 ++
 engine/md_amd64.h |    2 +-
 engine/md_x86.h   |   42 +++++++++++++++++++++++++++++++++++++++++-
 3 files changed, 44 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
DotGNU Portable.NET engine, compilers and tools (pnet)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]