string.c (mrb_memsearch_ss): update comment

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-01-30 23:54:31 +09:00
parent 44a5882bc2
commit 6ba65ea0f0
+2 -3
View File
@@ -566,10 +566,9 @@ str_index_str_by_char(mrb_state *mrb, mrb_value str, mrb_value sub, mrb_int pos)
#define str_index_str_by_char(mrb, str, sub, pos) str_index_str((mrb), (str), (sub), (pos))
#endif
/* The function is taken from https://github.com/WojciechMula/sse4-strstr.git */
/* The original source code is under 2 clause BSD license; see LEGAL file. */
/* The function is taken from http://0x80.pl/articles/simd-strfind.html */
/* The original source code is under 2-clause BSD license; see LEGAL file. */
/* The modifications:
* port from C++ to C
* takes unsigned char*
* returns mrb_int