Changeset 5217


Ignore:
Timestamp:
Sep 19, 2006, 12:34:32 AM (18 years ago)
Author:
Gary Byers
Message:

REQUIRE-TYPE: transform into require-[us][8,16,32,64] when possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/compiler/optimizers.lisp

    r4910 r5217  
    816816               ((eq type 'symbol)
    817817                `(the symbol (require-symbol ,arg)))
     818               ((type= (specifier-type type)
     819                       (specifier-type '(signed-byte 8)))
     820                `(the (signed-byte 8) (require-s8 ,arg)))               
     821               ((type= (specifier-type type)
     822                       (specifier-type '(unsigned-byte 8)))
     823                `(the (unsigned-byte 8) (require-u8 ,arg)))
     824               ((type= (specifier-type type)
     825                       (specifier-type '(signed-byte 16)))
     826                `(the (signed-byte 16) (require-s16 ,arg)))
     827               ((type= (specifier-type type)
     828                       (specifier-type '(unsigned-byte 16)))
     829                `(the (unsigned-byte 16) (require-u16 ,arg)))               
     830               ((type= (specifier-type type)
     831                       (specifier-type '(signed-byte 32)))
     832                `(the (signed-byte 32) (require-s32 ,arg)))
     833               ((type= (specifier-type type)
     834                       (specifier-type '(unsigned-byte 32)))
     835                `(the (unsigned-byte 32) (require-u32 ,arg)))
     836               ((type= (specifier-type type)
     837                       (specifier-type '(signed-byte 64)))
     838                `(the (signed-byte 64) (require-s64 ,arg)))
     839               ((type= (specifier-type type)
     840                       (specifier-type '(unsigned-byte 64)))
     841                `(the (unsigned-byte 64) (require-u64 ,arg)))               
    818842               ((and (consp type)(memq (car type) '(signed-byte unsigned-byte integer)))
    819843                `(the ,type (%require-type-builtin ,arg
Note: See TracChangeset for help on using the changeset viewer.