Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gsll
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
antik
gsll
Commits
62d44d73
Commit
62d44d73
authored
14 years ago
by
Liam Healy
Browse files
Options
Downloads
Patches
Plain Diff
Use fsbv:object instead of cffi:mem-aref
parent
4610fb4b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
init/funcallable.lisp
+2
-2
2 additions, 2 deletions
init/funcallable.lisp
random/generators.lisp
+3
-3
3 additions, 3 deletions
random/generators.lisp
special-functions/return-structures.lisp
+4
-6
4 additions, 6 deletions
special-functions/return-structures.lisp
with
9 additions
and
11 deletions
init/funcallable.lisp
+
2
−
2
View file @
62d44d73
;; Generate a lambda that calls the user function; will be called by callback.
;; Liam Healy
;; Time-stamp: <2010-1
1-25 09:09:40
EST funcallable.lisp>
;; Time-stamp: <2010-1
2-19 16:04:33
EST funcallable.lisp>
;;
;; Copyright 2009, 2010 Liam M. Healy
;; Distributed under the terms of the GNU General Public License
...
...
@@ -97,7 +97,7 @@
,@
(
affi::delinearize-index
(
affi:make-affi
(
value-from-dimensions
argspec
dimension-values
))
linear-index
))
`
(
cffi:mem-aref
`
(
fsbv:object
,
foreign-pointer-name
',
(
parse-callback-argspec
argspec
'element-type
)
,
linear-index
))
...
...
This diff is collapsed.
Click to expand it.
random/generators.lisp
+
3
−
3
View file @
62d44d73
;; Generators of random numbers.
;; Liam Healy, Sat Jul 15 2006 - 14:43
;; Time-stamp: <2010-
07
-1
6
1
7
:11:
25ED
T generators.lisp>
;; Time-stamp: <2010-
12
-1
9
1
6
:11:
01ES
T generators.lisp>
;;
;; Copyright 2006, 2007, 2008, 2009 Liam M. Healy
;; Copyright 2006, 2007, 2008, 2009
, 2010
Liam M. Healy
;; Distributed under the terms of the GNU General Public License
;;
;; This program is free software: you can redistribute it and/or modify
...
...
@@ -169,7 +169,7 @@
(
loop
for
i
from
0
below
(
length
ans
)
do
(
setf
(
aref
ans
i
)
(
mem-aref
(
rng-state
gen
)
:uint8
i
)))
(
fsbv:object
(
rng-state
gen
)
:uint8
i
)))
ans
))
;;;;****************************************************************************
...
...
This diff is collapsed.
Click to expand it.
special-functions/return-structures.lisp
+
4
−
6
View file @
62d44d73
;; Structures returned by special functions.
;; Liam Healy, Mon Jan 1 2007 - 11:35
;; Time-stamp: <2010-12-
04 17:37:57
EST return-structures.lisp>
;; Time-stamp: <2010-12-
19 16:09:12
EST return-structures.lisp>
;;
;; Copyright 2007, 2008, 2009 Liam M. Healy
;; Copyright 2007, 2008, 2009
, 2010
Liam M. Healy
;; Distributed under the terms of the GNU General Public License
;;
;; This program is free software: you can redistribute it and/or modify
...
...
@@ -44,8 +44,7 @@
;;; up by cffi-grovel. For the time being, FSBV is required.
#+
fsbv
(
fsbv:defconvert
(
sf-result
:constructor
values
)
(
fsbv:defconvert
(
sf-result
:constructor
values
)
(
val
:double
)
(
err
:double
))
...
...
@@ -53,8 +52,7 @@
(
values
val
e10
err
))
#+
fsbv
(
fsbv:defconvert
(
sf-result-e10
:constructor
values-e10
)
(
fsbv:defconvert
(
sf-result-e10
:constructor
values-e10
)
(
val
:double
)
(
err
:double
)
(
e10
:int
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment