Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nofib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
nofib
Commits
ea0de670
Commit
ea0de670
authored
Apr 03, 2009
by
simonpj@microsoft.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Comments only
parent
e289f1b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
spectral/fish/Main.hs
spectral/fish/Main.hs
+3
-0
No files found.
spectral/fish/Main.hs
View file @
ea0de670
...
...
@@ -16,6 +16,9 @@ vec_sub :: Vec -> Vec -> Vec
-- represent the nummerator and denominator of a rational number which
-- is used to scale the given vector.
scale_vec2
::
Vec
->
Int
->
Int
->
Vec
-- Inlining scale_vec2 makes a big difference (at least until we
-- have nested CPR! To see, try the effect of this inline pragma
{- # INLINE scale_vec2 # -}
scale_vec2
(
x
,
y
)
a
b
=
((
x
*
a
)
`
div
`
b
,
(
y
*
a
)
`
div
`
b
)
p_tile
::
[(
Int
,
Int
,
Int
,
Int
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment