Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Carl Shapiro
cmucl
Commits
16ae6709
Commit
16ae6709
authored
9 years ago
by
Raymond Toy
Browse files
Options
Downloads
Patches
Plain Diff
Rename %get/%set-floating-point-modes to encode/decode-floating-point-modes.
parent
a610d96c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/code/exports.lisp
+2
-2
2 additions, 2 deletions
src/code/exports.lisp
src/code/float-trap.lisp
+7
-7
7 additions, 7 deletions
src/code/float-trap.lisp
with
9 additions
and
9 deletions
src/code/exports.lisp
+
2
−
2
View file @
16ae6709
...
...
@@ -1579,10 +1579,10 @@
"DOUBLE-FLOAT-POSITIVE-INFINITY"
"LONG-FLOAT-POSITIVE-INFINITY"
"SINGLE-FLOAT-NEGATIVE-INFINITY"
"SHORT-FLOAT-NEGATIVE-INFINITY"
"DOUBLE-FLOAT-NEGATIVE-INFINITY"
"LONG-FLOAT-NEGATIVE-INFINITY"
"%GET-FLOATING-POINT-MODES"
"GET-FLOATING-POINT-MODES"
"SET-FLOATING-POINT-MODES"
"%SET-FLOATING-POINT-MODES"
"ENCODE-FLOATING-POINT-MODES"
"DECODE-FLOATING-POINT-MODES"
"FLOAT-DENORMALIZED-P"
"FLOAT-INFINITY-P"
"FLOAT-NAN-P"
"FLOAT-TRAPPING-NAN-P"
"FLOAT-SIGNALING-NAN-P"
...
...
This diff is collapsed.
Click to expand it.
src/code/float-trap.lisp
+
7
−
7
View file @
16ae6709
...
...
@@ -23,9 +23,9 @@
)
(
in-package
"EXTENSIONS"
)
(
export
'
(
set-floating-point-modes
%set-floating-point-modes
get-floating-point-modes
%get-floating-point-modes
decode-floating-point-modes
encode-floating-point-modes
with-float-traps-masked
with-float-traps-enabled
))
(
in-package
"VM"
)
...
...
@@ -140,13 +140,13 @@
;;; %SET-FLOATING-POINT-MODES -- Public
;;;
(
defun
%set
-floating-point-modes
(
&key
(
floating-point-modes
(
floating-point-modes
))
(
defun
encode
-floating-point-modes
(
&key
(
floating-point-modes
(
floating-point-modes
))
(
traps
nil
traps-p
)
(
rounding-mode
nil
round-p
)
(
current-exceptions
nil
current-x-p
)
(
accrued-exceptions
nil
accrued-x-p
)
(
fast-mode
nil
fast-mode-p
))
"
Sets
floating-point modes according to the give options and the
"
Encode the
floating-point modes according to the give options and the
specified mode, Floating-Point-Modes. The resulting new mode is
returned. If a keyword is not supplied, then the current value is
preserved. Possible keywords:
...
...
@@ -260,13 +260,13 @@
(
declare
(
ignorable
traps
rounding-mode
current-exceptions
accrued-exceptions
fast-mode
))
(
setf
(
floating-point-modes
)
(
apply
#'
%set
-floating-point-modes
args
))
(
apply
#'
encode
-floating-point-modes
args
))
(
values
))
;;; %GET-FLOATING-POINT-MODES -- Public
;;;
(
defun
%get
-floating-point-modes
(
modes
)
(
defun
decode
-floating-point-modes
(
modes
)
"This function returns a list representing the state of the floating point
modes given in Modes. The list is in the same format as the keyword arguments to
SET-FLOATING-POINT-MODES."
...
...
@@ -295,7 +295,7 @@
(apply #'set-floating-point-modes (get-floating-point-modes))
sets the floating point modes to their current values (and thus is a no-op)."
(
%get
-floating-point-modes
(
floating-point-modes
)))
(
decode
-floating-point-modes
(
floating-point-modes
)))
;;; CURRENT-FLOAT-TRAP -- Interface
...
...
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