Add MATRIX22 type.
[cl-tuples.git] / utils.lisp
blob099007da2cff8496264e0b86e071e1e5485a9329
1 (in-package :cl-tuples)
3 ;; float that fits within range of x86 hardware register minus tag (rather sbcl oriented)
4 (deftype fast-float ()
5 #+sbcl `(single-float (#.(- (expt 2f0 64))) (#.(expt 2f0 64)))
6 #-sbcl single-float)
8 (defun make-adorned-symbol (name &key prefix suffix asterisk package)
9 (check-type name (or string symbol))
10 (check-type prefix (or symbol string null))
11 (check-type suffix (or symbol string null))
12 (intern (concatenate 'string
13 (when prefix
14 (string prefix))
15 (when prefix "-")
16 (string name)
17 (when suffix
18 "-")
19 (when suffix
20 (string suffix))
21 (when asterisk
22 (string "*")))
23 (if package package *package*)))