AFAIK, only GNU compilers can handle this code. The reason is the non-standard GNUism known as "case ranges".
Replacing those 'switch' with 'if-else' statements will make the code more portable.
Logged In: YES user_id=794960 Originator: NO
This is right. The reason for that is the efficiency and concision of the code generated by gcc, but if-then-else is probably fast enough.
Log in to post a comment.
Logged In: YES
user_id=794960
Originator: NO
This is right. The reason for that is the efficiency and concision of the code generated by gcc, but if-then-else is probably fast enough.