|
[patch #5709] Augmented Balanced Tree data structure: msg#00070statistics.pspp.devel
Follow-up Comment #3, patch #5709 (project pspp): You're right. I would have probably written something like: static void reverse (int *values, size_t cnt) { size_t i = 0; size_t j = cnt - 1; while (j > i ) swap (values[i++], values[j--]); } _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/patch/?5709> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [patch #5709] Augmented Balanced Tree data structure: 00070, Ben Pfaff |
|---|---|
| Next by Date: | [patch #5709] Augmented Balanced Tree data structure: 00070, Ben Pfaff |
| Previous by Thread: | [patch #5709] Augmented Balanced Tree data structurei: 00070, Ben Pfaff |
| Next by Thread: | [patch #5709] Augmented Balanced Tree data structure: 00070, Ben Pfaff |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |