comparison ChangeLog @ 37195:8b352e472ff1

count-leading-zeros: port to MSC; support types wider than 64 bits The ideas behind the MSC port are stolen from Emacs. * lib/count-leading-zeros.h: Don't include verify.h: it's no longer needed, as types wider than 64 bits are now supported. (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better performance with MSC. All uses changed. Do not assume that TYPE has at most 64 bits. (count_leading_zeros_32): Assume 0 < X < 2**32, for speed. All uses changed. Fold the subtraction from 31 into the table.
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 06 Oct 2013 23:51:44 -0700
parents 53763a2be60d
children 97a395d4f592
comparison
equal deleted inserted replaced
37194:53763a2be60d 37195:8b352e472ff1
1 2013-10-06 Paul Eggert <eggert@cs.ucla.edu> 1 2013-10-06 Paul Eggert <eggert@cs.ucla.edu>
2
3 count-leading-zeros: port to MSC; support types wider than 64 bits
4 The ideas behind the MSC port are stolen from Emacs.
5 * lib/count-leading-zeros.h:
6 Don't include verify.h: it's no longer needed, as types wider than
7 64 bits are now supported.
8 (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
9 performance with MSC. All uses changed. Do not assume that TYPE
10 has at most 64 bits.
11 (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
12 All uses changed. Fold the subtraction from 31 into the table.
2 13
3 count-one-bits: port to MSC; support types wider than 64 bits 14 count-one-bits: port to MSC; support types wider than 64 bits
4 The ideas behind the MSC port are stolen from Emacs. 15 The ideas behind the MSC port are stolen from Emacs.
5 * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable. 16 * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
6 * lib/count-one-bits.h: Include limits.h, for CHAR_BIT. 17 * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.