Branch: Tag:

2014-10-20

2014-10-20 13:34:57 by Martin Nilsson <nilsson@opera.com>

sqrt is C89 and 5x faster than my_sqrt.

109:    if(max > MEMSEARCH_LINKS) max=MEMSEARCH_LINKS;       /* This assumes 512 buckets - Hubbe */ -  maxlinklength = my_sqrt(DO_NOT_WARN((unsigned int)max/2))+1; +  maxlinklength = (INT32)sqrt((double)max/2)+1;       ptr=& s->links[0];