Re: [PATCH] start of rewrite of unordered_{set,map}

2015-09-18 Thread Geoff Pike
Thanks Jonathan! I will work on what you suggest. Regarding bug 55815: thank you for pointing that out. I'll update the bug this weekend. Geoff

[PATCH] start of rewrite of unordered_{set,map}

2015-09-16 Thread Geoff Pike
This change is the start of a rewrite of unordered_set and unordered_map. (By the way, I am new to GCC and do not have SVN write access.) SUMMARY OF MOTIVATION FOR THE CHANGE 1. Speed. Linked lists are slow. Without them, we save memory, allowing us to default to a lower load factor; or, the

Re: [PATCH] start of rewrite of unordered_{set,map}

2015-09-16 Thread Geoff Pike
Silly me, pasting the patch at the bottom of my original message didn't work. Patch is attached. Also, to clarify, I am primarily seeking high-level comments; I am new here and don't want to waste anybody's time. Index: libstdc++-v3/include/Makefile.am

libiberty sha1.c: bug in adding 64-bit number to 64-bit number (binutils-2.22.90)

2012-09-17 Thread Geoff Pike
. RFC 1321 specifies the possible length of the file up to 2^64 bits. Here we only compute the number of bytes. Do a double word increment. */ ctx-total[0] += len; if (ctx-total[0] len) ++ctx-total[1]; The above is at sha1.c around line 302. regards, Geoff Pike