diff src/OPERATORS/op-int.h @ 7914:e998e81224b5

Various compilation fixes for MSVC.
author John W. Eaton <jwe@octave.org>
date Thu, 10 Jul 2008 08:59:18 -0400
parents 82be108cc558
children cd90e2842080
line wrap: on
line diff
--- a/src/OPERATORS/op-int.h	Wed Jul 09 18:03:10 2008 -0400
+++ b/src/OPERATORS/op-int.h	Thu Jul 10 08:59:18 2008 -0400
@@ -227,13 +227,13 @@
   octave_value \
   xpow (const octave_ ## T1& a, float b) \
   { \
-    return pow (a, b); \
+    return powf (a, b); \
   } \
  \
   octave_value \
   xpow (float a, const octave_ ## T1& b) \
   { \
-    return pow (a, b); \
+    return powf (a, b); \
   }
 
 #define OCTAVE_SS_INT_OPS(TYPE) \
@@ -360,7 +360,7 @@
     for (int i = 0; i < b.length (); i++) \
       { \
 	OCTAVE_QUIT; \
-	result (i) = pow (a, b(i)); \
+	result (i) = powf (a, b(i)); \
       } \
     return octave_value (result); \
   } \
@@ -372,7 +372,7 @@
     for (int i = 0; i < b.length (); i++) \
       { \
 	OCTAVE_QUIT; \
-	result (i) = pow (a, b(i)); \
+	result (i) = powf (a, b(i)); \
       } \
     return octave_value (result); \
   }
@@ -512,7 +512,7 @@
   for (int i = 0; i < a.length (); i++) \
     { \
       OCTAVE_QUIT; \
-      result (i) = pow (a(i), b);		\
+      result (i) = powf (a(i), b);		\
     } \
   return octave_value (result); \
 } \
@@ -523,7 +523,7 @@
   for (int i = 0; i < a.length (); i++) \
     { \
       OCTAVE_QUIT; \
-      result (i) = pow (a(i), b);		\
+      result (i) = powf (a(i), b);		\
     } \
   return octave_value (result); \
 }
@@ -690,7 +690,7 @@
     for (int i = 0; i < a.length (); i++) \
       { \
 	OCTAVE_QUIT; \
-	result (i) = pow (a(i), b(i)); \
+	result (i) = powf (a(i), b(i)); \
       } \
     return octave_value (result); \
   } \
@@ -709,7 +709,7 @@
     for (int i = 0; i < a.length (); i++) \
       { \
 	OCTAVE_QUIT; \
-	result (i) = pow (a(i), b(i)); \
+	result (i) = powf (a(i), b(i)); \
       } \
     return octave_value (result); \
   }