]> granicus.if.org Git - php/commitdiff
- This makes the switch() statement twice as quick. Moving to enum
authorAndi Gutmans <andi@php.net>
Fri, 28 Jan 2000 13:25:55 +0000 (13:25 +0000)
committerAndi Gutmans <andi@php.net>
Fri, 28 Jan 2000 13:25:55 +0000 (13:25 +0000)
  might make this a general speed up for other platforms too

Zend/zend_execute.c

index 380ba616274eb3c85458fe68a5f39327151ebc0d..b0f20d73e5b542b02b7b2d2aa61b57899eab6631 100644 (file)
@@ -2270,8 +2270,12 @@ send_by_ref:
                        case ZEND_EXT_NOP:
                        case ZEND_NOP:
                                break;
+#if (WINNT|WIN32) /* This makes the switch() statement twice as quick. Moving to enum
+                                        might make this a general speed up for other platforms too */
                        default:
+                               __assume(0);
                                break;
+#endif
                }
                opline++;
        }