Branch: Tag:

2004-10-13

2004-10-13 23:56:17 by Martin Nilsson <mani@lysator.liu.se>

Easy optimization.

Rev: src/builtin_functions.c:1.570

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.c,v 1.569 2004/10/11 16:50:07 mast Exp $ + || $Id: builtin_functions.c,v 1.570 2004/10/13 23:56:17 nilsson Exp $   */      #include "global.h"
402:      #define DO_LOWER_CASE(C) do {\    INT32 c = C; \ -  if(c<128){if(c >= 'A' && c <= 'Z' ) C=c+0x20;}else {\ +  if(c<0xb5){if(c >= 'A' && c <= 'Z' ) C=c+0x20;}else {\    struct case_info *ci = find_ci(c); \    if (ci) { \    switch(ci->mode) { \
417:      #define DO_LOWER_CASE_SHIFT0(C) do {\    INT32 c = C; \ -  if(c<128){if(c >= 'A' && c <= 'Z' ) C=c+0x20;}else {\ +  if(c<0xb5){if(c >= 'A' && c <= 'Z' ) C=c+0x20;}else {\    struct case_info *ci = find_ci_shift0(c); \    if (ci) { \    switch(ci->mode) { \
432:      #define DO_UPPER_CASE(C) do {\    INT32 c = C; \ -  if(c<128){if(c >= 'a' && c <= 'z' ) C=c-0x20;}else {\ +  if(c<0xb5){if(c >= 'a' && c <= 'z' ) C=c-0x20;}else {\    struct case_info *ci = find_ci(c); \    if (ci) { \    switch(ci->mode) { \
447:      #define DO_UPPER_CASE_SHIFT0(C) do {\    INT32 c = C; \ -  if(c<128){if(c >= 'a' && c <= 'z' ) C=c-0x20;}else {\ +  if(c<0xb5){if(c >= 'a' && c <= 'z' ) C=c-0x20;}else {\    struct case_info *ci = find_ci_shift0(c); \    if (ci) { \    switch(ci->mode) { \