Custom Query (1030 matches)
Results (589 - 591 of 1030)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #1009 | fixed | initGlut is called with incorrect parameters in examples/opengl-ffi.lisp | ||
| Description |
the function initGlut() must be called with a pointer to a variable containing argc and a pointer to argv. Instead, it is being called with a pointer to a pointer to argv (line 45 in examples/opengl-ffi.lisp).
Simplest fix is to remove the creation and initialization of argvp, and to change line 45 to read
Cheers, Hans-Martin |
|||
| #1011 | fixed | Inefficient hash table -- bad hashing | ||
| Description |
I built a hash table with keys that were simple cons cells of the form (<type> . <item>) I had a few <type>s, and lots of atomic <item>s (in particular, strings) for each <type>. The performance was very bad. Investigation showed that ccl::compute-hash-code was returning a hash code that depended only on the <type> but not on the <item>, meaning that hash table look up was degenerating into a linear search. Example: (setq h (make-hash-table :test #'equal)) Then (ccl::compute-hash-code h '(type . "foo") nil) (ccl::compute-hash-code h '(type . "bar") nil) (ccl::compute-hash-code h '(type . "baz") nil) (ccl::compute-hash-code h '(type . pi) nil) (ccl::compute-hash-code h '(type . nil) nil) all return exactly the same results. |
|||
| #1012 | fixed | %unbox-s8 vinsin missing | ||
| Description |
I was loading a matrix math package, via (ql:quickload "clem"), and got an error that the %unbox-s8 vinsin is missing. It's missing in both x8664-vinsins.lisp and x8632-vinsins.lisp. I have a fix that I'll commit to trunk soon. To test, evaluate the following two forms. The first one errors before the fix. (defun foo (m x) (declare (optimize (speed 3) (safety 0))) (declare (type (simple-array (signed-byte 8) *) m)) (setf (aref m 0) x)) (let ((a (make-array 2 :element-type '(signed-byte 8)))) (foo a -128) (assert (eql -128 (aref a 0))) (foo a 127) (assert (eql 127 (aref a 0))) (foo a 128) (assert (eql -128 (aref a 0)))) |
|||
