summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-04-13 06:41:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-04-13 06:41:13 -0700
commit65312028c807acb987f78c73474ee790e6cba24c (patch)
treeced2dd14d7ef07bcc3e4942a316d37b49e9cb3d3 /share
parentb058a4d8443084c25ae8ed0cb152c26951f69cbf (diff)
downloadtxr-65312028c807acb987f78c73474ee790e6cba24c.tar.gz
txr-65312028c807acb987f78c73474ee790e6cba24c.tar.bz2
txr-65312028c807acb987f78c73474ee790e6cba24c.zip
case macros: switch for integer and char ranges.
* eval.c (hash_min_max): New static function. (me_case): Check for keys being all integers or all characters in a dense range (> 75% full). Generate code for switching directly on the displacement of the tested value into the key range.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions