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
ba5d4776
Commit
ba5d4776
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Made CEILING and FLOOR be maybe-inline instead of inline so that by
default, the power-of-2 transforms will get a chance to run.
parent
5593f058
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/numbers.lisp
+6
-3
6 additions, 3 deletions
code/numbers.lisp
with
6 additions
and
3 deletions
code/numbers.lisp
+
6
−
3
View file @
ba5d4776
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.1
5
1990/12/1
1 23:59
:5
4
ram Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/numbers.lisp,v 1.1
6
1990/12/1
2 18:14
:5
8
ram Exp $
;;;
;;;
;;; This file contains the definitions of most number functions.
;;; This file contains the definitions of most number functions.
;;;
;;;
...
@@ -560,9 +560,12 @@
...
@@ -560,9 +560,12 @@
;;; Declare these guys inline to let them get optimized a little. Round and
;;; Declare these guys inline to let them get optimized a little. Round and
;;; Fround are not declared inline since they seem too obscure and too
;;; Fround are not declared inline since they seem too obscure and too
;;; big to inline-expand by default. Also, this gives the compiler a chance to
;;; big to inline-expand by default. Also, this gives the compiler a chance to
;;; pick off the unary float case.
;;; pick off the unary float case. Simlarly, ceiling and floor are only
;;; maybe-inline for now, so that the power-of-2 ceiling and floor transforms
;;; get a chance.
;;;
;;;
(
proclaim
'
(
inline
ceiling
floor
rem
mod
fceiling
ffloor
ftruncate
))
(
declaim
(
inline
rem
mod
fceiling
ffloor
ftruncate
))
(
declaim
(
maybe-inline
ceiling
floor
))
;;; If the numbers do not divide exactly and the result of (/ number divisor)
;;; If the numbers do not divide exactly and the result of (/ number divisor)
;;; would be negative then decrement the quotient and augment the remainder by
;;; would be negative then decrement the quotient and augment the remainder by
...
...
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