Changeset 14228
- Timestamp:
- Aug 30, 2010, 1:16:05 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/source/lib/macros.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lib/macros.lisp
r14227 r14228 1328 1328 1329 1329 (defmacro %char-code (c) `(char-code (the character ,c))) 1330 (defmacro %code-char (i) `(code-char (the (mod #.char-code-limit) ,i))) 1330 ;;; %CODE-CHAR is used internally. It can sometimes exploit the 1331 ;;; assertion that the character code is an (UNSIGNED-BYTE 8) to 1332 ;;; generate better compiled code (partly because all such character 1333 ;;; codes denote characters.) 1334 ;;; Confusingly, it's not just the inverse of %CHAR-CODE. It's 1335 ;;; almost always going to be open-coded, so this macro definition 1336 ;;; is mostly just a kind of documentation. 1337 (defmacro %code-char (i) `(code-char (the (mod 256) ,i))) 1331 1338 1332 1339 (defmacro %izerop (x) `(eq ,x 0))
Note:
See TracChangeset
for help on using the changeset viewer.
