Optimalisations cmpsc.c

Changes for faster processing without influence on logic.