summaryrefslogtreecommitdiffstats
path: root/llvm/runtime/GCCLibraries/libc/qsort.c
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-05-29 22:12:35 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-05-29 22:12:35 +0000
commit064192d26090a42201d269843d2a41a45b77eb39 (patch)
tree777a868b79349fa1e0c08d337c927b491d3b5f51 /llvm/runtime/GCCLibraries/libc/qsort.c
parent55512b18737c669c634102b7f6f61c7a04a1f9c9 (diff)
downloadbcm5719-llvm-064192d26090a42201d269843d2a41a45b77eb39.tar.gz
bcm5719-llvm-064192d26090a42201d269843d2a41a45b77eb39.zip
Prevent lines from wrapping.
llvm-svn: 6419
Diffstat (limited to 'llvm/runtime/GCCLibraries/libc/qsort.c')
-rw-r--r--llvm/runtime/GCCLibraries/libc/qsort.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/llvm/runtime/GCCLibraries/libc/qsort.c b/llvm/runtime/GCCLibraries/libc/qsort.c
index 12687018b7b..9bfad24dabb 100644
--- a/llvm/runtime/GCCLibraries/libc/qsort.c
+++ b/llvm/runtime/GCCLibraries/libc/qsort.c
@@ -28,17 +28,17 @@
#include <string.h>
/* Byte-wise swap two items of size SIZE. */
-#define SWAP(a, b, size) \
- do \
- { \
- register size_t __size = (size); \
- register char *__a = (a), *__b = (b); \
- do \
- { \
- char __tmp = *__a; \
- *__a++ = *__b; \
- *__b++ = __tmp; \
- } while (--__size > 0); \
+#define SWAP(a, b, size) \
+ do \
+ { \
+ register size_t __size = (size); \
+ register char *__a = (a), *__b = (b); \
+ do \
+ { \
+ char __tmp = *__a; \
+ *__a++ = *__b; \
+ *__b++ = __tmp; \
+ } while (--__size > 0); \
} while (0)
/* Discontinue quicksort algorithm when partition gets below this size.
@@ -59,8 +59,8 @@ typedef struct
bits per byte (CHAR_BIT) * sizeof(size_t). */
#define STACK_SIZE (CHAR_BIT * sizeof(size_t))
#define PUSH(low, high) ((void) ((top->lo = (low)), (top->hi = (high)), ++top))
-#define POP(low, high) ((void) (--top, (low = top->lo), (high = top->hi)))
-#define STACK_NOT_EMPTY (stack < top)
+#define POP(low, high) ((void) (--top, (low = top->lo), (high = top->hi)))
+#define STACK_NOT_EMPTY (stack < top)
/* Order size using quicksort. This implementation incorporates
OpenPOWER on IntegriCloud