summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-01-09 17:32:26 -0800
committerJeremy Allison <jra@samba.org>2008-01-09 17:32:26 -0800
commit980ac0984905d8c3f29dd62ed75fc9c7cb22cdd8 (patch)
tree1346ffda48fd6f92daeac194eb84bba3e631a983 /source3/include
parent253fbf1a6ece5c8dc9759e3535b7f9fa46883c1b (diff)
downloadsamba-980ac0984905d8c3f29dd62ed75fc9c7cb22cdd8.tar.gz
samba-980ac0984905d8c3f29dd62ed75fc9c7cb22cdd8.tar.bz2
samba-980ac0984905d8c3f29dd62ed75fc9c7cb22cdd8.zip
Fixup hot paths - add macro for toupper (c < 0x80).
This now matches 3.0.x on my micro-tests. Jeremy. (This used to be commit 329b924cba8225002ca40db26c45b31d141a0925)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb_macros.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h
index 3324f3fc02..463a2bdb0b 100644
--- a/source3/include/smb_macros.h
+++ b/source3/include/smb_macros.h
@@ -385,4 +385,12 @@ do { \
#define ISDOTDOT(p) (*(p) == '.' && *((p) + 1) == '.' && *((p) + 2) == '\0')
#endif /* ISDOTDOT */
+#ifndef toupper_ascii_fast
+/* Warning - this must only be called with 0 <= c < 128. IT WILL
+ * GIVE GARBAGE if c > 128 or c < 0. JRA.
+ */
+extern char toupper_ascii_fast_table[];
+#define toupper_ascii_fast(c) toupper_ascii_fast_table[(unsigned int)(c)];
+#endif
+
#endif /* _SMB_MACROS_H */