[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
*LDB, *DBP
- To: ALAN at MIT-MC
- Subject: *LDB, *DBP
- From: JONL at MIT-MC (Jon L White)
- Date: Thu, 18 Sep 80 13:47:00 GMT
- Cc: (BUG LISP) at MIT-MC
- Original-date: 18 SEP 1980 0947-EDT
Date: 18 September 1980 04:06-EDT
BTW I notice that the functions *ldb and *dpb take the byte
specifcation shifted left by 30 (octal). This causes (ldb x y)
to expand into (*ldb (lsh x 30) y). This seems pretty gratuitous
to me since it only takes one instruction to have *ldb and *dpb
do the lsh themselves. (*ldb contains an unnecessary move anyway!)
*LDB and *DPB take a pre-shifted argument so that when, for example,
"x" is a constant, the call becomes (*ldb <x>_30 y), and the executable
sequence then doesn't include the LSH; this in fact is the case worth
optimizing.