diff liboctave/lo-mappers.h @ 11209:94d9d412a2a0

improve Matlab compatibility of rem and mod
author John W. Eaton <jwe@octave.org>
date Tue, 09 Nov 2010 00:57:49 -0500
parents 9478b216752e
children 2554b4a0806e
line wrap: on
line diff
--- a/liboctave/lo-mappers.h
+++ b/liboctave/lo-mappers.h
@@ -38,7 +38,8 @@
 extern OCTAVE_API double xroundb (double x);
 extern OCTAVE_API double signum (double x);
 extern OCTAVE_API double xtrunc (double x);
-extern OCTAVE_API double mod (double x, double y);
+extern OCTAVE_API double xmod (double x, double y);
+extern OCTAVE_API double xrem (double x, double y);
 extern OCTAVE_API double xlog2 (double x); 
 extern OCTAVE_API Complex xlog2 (const Complex& x); 
 extern OCTAVE_API double xlog2 (double x, int& exp);
@@ -127,7 +128,8 @@
 extern OCTAVE_API float xroundb (float x);
 extern OCTAVE_API float signum (float x);
 extern OCTAVE_API float xtrunc (float x);
-extern OCTAVE_API float mod (float x, float y);
+extern OCTAVE_API float xmod (float x, float y);
+extern OCTAVE_API float xrem (float x, float y);
 extern OCTAVE_API float xlog2 (float x); 
 extern OCTAVE_API FloatComplex xlog2 (const FloatComplex& x); 
 extern OCTAVE_API float xlog2 (float x, int& exp);