summaryrefslogtreecommitdiff
path: root/subversion/libsvn_subr/eol.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/libsvn_subr/eol.c')
-rw-r--r--subversion/libsvn_subr/eol.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/subversion/libsvn_subr/eol.c b/subversion/libsvn_subr/eol.c
index e63cf1113577c..d04afd71c2e39 100644
--- a/subversion/libsvn_subr/eol.c
+++ b/subversion/libsvn_subr/eol.c
@@ -38,25 +38,25 @@ svn_eol__find_eol_start(char *buf, apr_size_t len)
/* Scan the input one machine word at a time. */
for (; len > sizeof(apr_uintptr_t)
; buf += sizeof(apr_uintptr_t), len -= sizeof(apr_uintptr_t))
- {
- /* This is a variant of the well-known strlen test: */
- apr_uintptr_t chunk = *(const apr_uintptr_t *)buf;
-
- /* A byte in SVN__R_TEST is \0, iff it was \r in *BUF.
- * Similarly, SVN__N_TEST is an indicator for \n. */
- apr_uintptr_t r_test = chunk ^ SVN__R_MASK;
- apr_uintptr_t n_test = chunk ^ SVN__N_MASK;
-
- /* A byte in SVN__R_TEST can only be < 0x80, iff it has been \0 before
- * (i.e. \r in *BUF). Ditto for SVN__N_TEST. */
- r_test |= (r_test & SVN__LOWER_7BITS_SET) + SVN__LOWER_7BITS_SET;
- n_test |= (n_test & SVN__LOWER_7BITS_SET) + SVN__LOWER_7BITS_SET;
-
- /* Check whether at least one of the words contains a byte <0x80
- * (if one is detected, there was a \r or \n in CHUNK). */
- if ((r_test & n_test & SVN__BIT_7_SET) != SVN__BIT_7_SET)
- break;
- }
+ {
+ /* This is a variant of the well-known strlen test: */
+ apr_uintptr_t chunk = *(const apr_uintptr_t *)buf;
+
+ /* A byte in SVN__R_TEST is \0, iff it was \r in *BUF.
+ * Similarly, SVN__N_TEST is an indicator for \n. */
+ apr_uintptr_t r_test = chunk ^ SVN__R_MASK;
+ apr_uintptr_t n_test = chunk ^ SVN__N_MASK;
+
+ /* A byte in SVN__R_TEST can only be < 0x80, iff it has been \0 before
+ * (i.e. \r in *BUF). Ditto for SVN__N_TEST. */
+ r_test |= (r_test & SVN__LOWER_7BITS_SET) + SVN__LOWER_7BITS_SET;
+ n_test |= (n_test & SVN__LOWER_7BITS_SET) + SVN__LOWER_7BITS_SET;
+
+ /* Check whether at least one of the words contains a byte <0x80
+ * (if one is detected, there was a \r or \n in CHUNK). */
+ if ((r_test & n_test & SVN__BIT_7_SET) != SVN__BIT_7_SET)
+ break;
+ }
#endif