Changes:
- $Id: arch.h 4357 2006-01-22 23:33:38Z twisti $
+ $Id: arch.h 5017 2006-06-06 18:05:16Z twisti $
*/
#define SUPPORT_LONG_MUL 1
#define SUPPORT_LONG_DIV 0
+#define SUPPORT_LONG_DIV_POW2 1
+#define SUPPORT_LONG_REM_POW2 1
+
#define SUPPORT_CONST_LOGICAL 1 /* AND, OR, XOR with immediates */
#define SUPPORT_CONST_MUL 1 /* mutiply with immediate */
Changes:
- $Id: arch.h 4386 2006-01-30 11:26:34Z christian $
+ $Id: arch.h 5017 2006-06-06 18:05:16Z twisti $
*/
#define SUPPORT_LONG_MUL 1
#define SUPPORT_LONG_DIV 0
+#define SUPPORT_LONG_DIV_POW2 1
+#define SUPPORT_LONG_REM_POW2 0
+
#define SUPPORT_CONST_LOGICAL 1 /* AND, OR, XOR with immediates */
#define SUPPORT_CONST_MUL 1 /* mutiply with immediate */
Changes:
- $Id: arch.h 4357 2006-01-22 23:33:38Z twisti $
+ $Id: arch.h 5017 2006-06-06 18:05:16Z twisti $
*/
#define SUPPORT_LONG_MUL 1
#define SUPPORT_LONG_DIV 1
+#define SUPPORT_LONG_DIV_POW2 1
+#define SUPPORT_LONG_REM_POW2 1
+
#define SUPPORT_CONST_LOGICAL 1 /* AND, OR, XOR with immediates */
#define SUPPORT_CONST_MUL 1 /* mutiply with immediate */
#define SUPPORT_LONG_MUL 0
#define SUPPORT_LONG_DIV 0
+#define SUPPORT_LONG_DIV_POW2 0
+#define SUPPORT_LONG_REM_POW2 0
+
#define SUPPORT_CONST_LOGICAL 1 /* AND, OR, XOR with immediates */
#define SUPPORT_CONST_MUL 1 /* mutiply with immediate */
Changes:
- $Id: arch.h 4386 2006-01-30 11:26:34Z christian $
+ $Id: arch.h 5017 2006-06-06 18:05:16Z twisti $
*/
#define SUPPORT_LONG_MUL 0
#define SUPPORT_LONG_DIV 0
+#define SUPPORT_LONG_DIV_POW2 0
+#define SUPPORT_LONG_REM_POW2 0
+
#define SUPPORT_CONST_LOGICAL 1 /* AND, OR, XOR with immediates */
#define SUPPORT_CONST_MUL 1 /* mutiply with immediate */
Christian Thalinger
Christian Ullrich
- $Id: stack.c 4998 2006-05-31 20:28:27Z edwin $
+ $Id: stack.c 5017 2006-06-06 18:05:16Z twisti $
*/
goto icmd_lconst_tail;
# endif /* SUPPORT_LONG_SHIFT */
#endif /* SUPPORT_LONG_MUL && SUPPORT_CONST_MUL */
-#if SUPPORT_LONG_DIV
+
+#if SUPPORT_LONG_DIV_POW2
case ICMD_LDIV:
if (iptr[0].val.l == 0x00000002)
iptr[0].val.i = 1;
}
iptr[0].opc = ICMD_LDIVPOW2;
goto icmd_lconst_tail;
+#endif /* SUPPORT_LONG_DIV_POW2 */
+
+#if SUPPORT_LONG_REM_POW2
case ICMD_LREM:
if ((iptr[0].val.l == 0x00000002) ||
(iptr[0].val.l == 0x00000004) ||
}
PUSHCONST(TYPE_LNG);
break;
-#endif /* SUPPORT_LONG_DIV */
+#endif /* SUPPORT_LONG_REM_POW2 */
+
#if SUPPORT_LONG_LOGICAL && SUPPORT_CONST_LOGICAL
case ICMD_LAND:
Changes:
- $Id: arch.h 4357 2006-01-22 23:33:38Z twisti $
+ $Id: arch.h 5017 2006-06-06 18:05:16Z twisti $
*/
#define SUPPORT_LONG_MUL 1
#define SUPPORT_LONG_DIV 1
+#define SUPPORT_LONG_DIV_POW2 1
+#define SUPPORT_LONG_REM_POW2 1
+
#define SUPPORT_CONST_LOGICAL 1 /* AND, OR, XOR with immediates */
#define SUPPORT_CONST_MUL 1 /* mutiply with immediate */