mirror of
https://github.com/MariaDB/server.git
synced 2025-12-18 10:22:14 +03:00
Style cleanups: Convert spaces to tabs, remove trailing whitespace, other
misc cleanups.
This commit is contained in:
@@ -40,20 +40,20 @@ see test program in tsut.c. */
|
||||
ulint ut_sort_low77;\
|
||||
ulint ut_sort_high77;\
|
||||
\
|
||||
ut_ad((LOW) < (HIGH));\
|
||||
ut_ad(ARR);\
|
||||
ut_ad(AUX_ARR);\
|
||||
ut_ad((LOW) < (HIGH));\
|
||||
ut_ad(ARR);\
|
||||
ut_ad(AUX_ARR);\
|
||||
\
|
||||
if ((LOW) == (HIGH) - 1) {\
|
||||
return;\
|
||||
} else if ((LOW) == (HIGH) - 2) {\
|
||||
if (CMP_FUN((ARR)[LOW], (ARR)[(HIGH) - 1]) > 0) {\
|
||||
(AUX_ARR)[LOW] = (ARR)[LOW];\
|
||||
(ARR)[LOW] = (ARR)[(HIGH) - 1];\
|
||||
(ARR)[(HIGH) - 1] = (AUX_ARR)[LOW];\
|
||||
}\
|
||||
return;\
|
||||
}\
|
||||
if ((LOW) == (HIGH) - 1) {\
|
||||
return;\
|
||||
} else if ((LOW) == (HIGH) - 2) {\
|
||||
if (CMP_FUN((ARR)[LOW], (ARR)[(HIGH) - 1]) > 0) {\
|
||||
(AUX_ARR)[LOW] = (ARR)[LOW];\
|
||||
(ARR)[LOW] = (ARR)[(HIGH) - 1];\
|
||||
(ARR)[(HIGH) - 1] = (AUX_ARR)[LOW];\
|
||||
}\
|
||||
return;\
|
||||
}\
|
||||
\
|
||||
ut_sort_mid77 = ((LOW) + (HIGH)) / 2;\
|
||||
\
|
||||
@@ -63,29 +63,29 @@ see test program in tsut.c. */
|
||||
ut_sort_low77 = (LOW);\
|
||||
ut_sort_high77 = ut_sort_mid77;\
|
||||
\
|
||||
for (ut_sort_i77 = (LOW); ut_sort_i77 < (HIGH); ut_sort_i77++) {\
|
||||
for (ut_sort_i77 = (LOW); ut_sort_i77 < (HIGH); ut_sort_i77++) {\
|
||||
\
|
||||
if (ut_sort_low77 >= ut_sort_mid77) {\
|
||||
(AUX_ARR)[ut_sort_i77] = (ARR)[ut_sort_high77];\
|
||||
ut_sort_high77++;\
|
||||
} else if (ut_sort_high77 >= (HIGH)) {\
|
||||
(AUX_ARR)[ut_sort_i77] = (ARR)[ut_sort_low77];\
|
||||
ut_sort_low77++;\
|
||||
} else if (CMP_FUN((ARR)[ut_sort_low77],\
|
||||
if (ut_sort_low77 >= ut_sort_mid77) {\
|
||||
(AUX_ARR)[ut_sort_i77] = (ARR)[ut_sort_high77];\
|
||||
ut_sort_high77++;\
|
||||
} else if (ut_sort_high77 >= (HIGH)) {\
|
||||
(AUX_ARR)[ut_sort_i77] = (ARR)[ut_sort_low77];\
|
||||
ut_sort_low77++;\
|
||||
} else if (CMP_FUN((ARR)[ut_sort_low77],\
|
||||
(ARR)[ut_sort_high77]) > 0) {\
|
||||
(AUX_ARR)[ut_sort_i77] = (ARR)[ut_sort_high77];\
|
||||
ut_sort_high77++;\
|
||||
(AUX_ARR)[ut_sort_i77] = (ARR)[ut_sort_high77];\
|
||||
ut_sort_high77++;\
|
||||
} else {\
|
||||
(AUX_ARR)[ut_sort_i77] = (ARR)[ut_sort_low77];\
|
||||
ut_sort_low77++;\
|
||||
(AUX_ARR)[ut_sort_i77] = (ARR)[ut_sort_low77];\
|
||||
ut_sort_low77++;\
|
||||
}\
|
||||
}\
|
||||
\
|
||||
for (ut_sort_i77 = (LOW); ut_sort_i77 < (HIGH); ut_sort_i77++) {\
|
||||
(ARR)[ut_sort_i77] = (AUX_ARR)[ut_sort_i77];\
|
||||
}\
|
||||
for (ut_sort_i77 = (LOW); ut_sort_i77 < (HIGH); ut_sort_i77++) {\
|
||||
(ARR)[ut_sort_i77] = (AUX_ARR)[ut_sort_i77];\
|
||||
}\
|
||||
}\
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user