Add -microarch:<string> (e.g. -microarch:native)

This commit is contained in:
gingerBill
2020-10-20 12:25:11 +01:00
parent b1bdd95f19
commit 0be6ddc7e2
5 changed files with 67 additions and 9 deletions

View File

@@ -125,6 +125,12 @@ gb_inline bool str_eq_ignore_case(String const &a, String const &b) {
return false;
}
void string_to_lower(String *s) {
for (isize i = 0; i < s->len; i++) {
s->text[i] = gb_char_to_lower(s->text[i]);
}
}
int string_compare(String const &x, String const &y) {
if (x.len != y.len || x.text != y.text) {
isize n, fast, offset, curr_block;