aboutsummaryrefslogtreecommitdiffstats
path: root/epan/asm_utils.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-11-05 13:05:20 +0000
committerAnders Broman <a.broman58@gmail.com>2017-11-05 23:20:20 +0000
commitba6dd97081c7490db0d6e98c9e8cd3b819b9dd6f (patch)
tree074acbab5aff45651e03617936d4d74d29d0bafc /epan/asm_utils.c
parent93bda0b18d68d07f7601811687e44811d14e97f4 (diff)
Remove epan win32 x86 assembly
Not used. Remove also weird pre-hash hash optimization in proto.c. Change-Id: Ibebc12dbe90ac1d05fb1ba601d32fe98797fbd56 Reviewed-on: https://code.wireshark.org/review/24254 Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: João Valverde <j@v6e.pt> Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/asm_utils.c')
-rw-r--r--epan/asm_utils.c85
1 files changed, 0 insertions, 85 deletions
diff --git a/epan/asm_utils.c b/epan/asm_utils.c
deleted file mode 100644
index 62ef49b095..0000000000
--- a/epan/asm_utils.c
+++ /dev/null
@@ -1,85 +0,0 @@
-/* asm_utils.c
- * Functions optionally implemented in assembler
- *
- * Wireshark - Network traffic analyzer
- * By Gerald Combs <gerald@wireshark.org>
- * Copyright 1998 Gerald Combs
- *
- * 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 the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#include "config.h"
-
-#include <string.h>
-#include <glib.h>
-
-#include "asm_utils.h"
-#include "ws_attributes.h"
-
-/* String comparison func for dfilter_token GTree */
-gint
-wrs_strcmp(gconstpointer a, gconstpointer b)
-{
- return strcmp((const char*)a, (const char*)b);
-}
-
-gint
-wrs_strcmp_with_data(gconstpointer a, gconstpointer b, gpointer user_data _U_)
-{
- return strcmp((const char*)a, (const char*)b);
-}
-
-gboolean
-wrs_str_equal(gconstpointer a, gconstpointer b)
-{
- return !strcmp((const char*)a, (const char*)b);
-}
-
-guchar
-wrs_check_charset(const guint8 table[256], const char *str)
-{
- const char *p = str;
- guchar c;
-
- do {
- c = *(p++);
- } while (table[c]);
- return c;
-}
-
-guint
-wrs_str_hash(gconstpointer v)
-{
- /* 31 bit hash function */
- const signed char *p = (const signed char *)v;
- guint32 h = *p;
- if (h)
- for (p += 1; *p != '\0'; p++)
- h = (h << 5) - h + *p;
- return h;
-}
-
-/*
- * Editor modelines - http://www.wireshark.org/tools/modelines.html
- *
- * Local variables:
- * c-basic-offset: 4
- * tab-width: 8
- * indent-tabs-mode: nil
- * End:
- *
- * vi: set shiftwidth=4 tabstop=8 expandtab:
- * :indentSize=4:tabSize=8:noTabs=true:
- */