Skip to content

Commit b5ce56e

Browse files
committed
Added iseven and isodd functions.
1 parent d37dab1 commit b5ce56e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "LoopVectorization"
22
uuid = "bdcacae8-1622-11e9-2a5c-532679323890"
33
authors = ["Chris Elrod <[email protected]>"]
4-
version = "0.8.12"
4+
version = "0.8.13"
55

66
[deps]
77
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"

src/costs.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ const COST = Dict{Symbol,InstructionCost}(
175175
:(>>) => InstructionCost(1, 0.5),
176176
:(>>>) => InstructionCost(1, 0.5),
177177
:(<<) => InstructionCost(1, 0.5),
178+
:isodd => InstructionCost(1, 0.5),
179+
:iseven => InstructionCost(1, 0.5),
178180
:max => InstructionCost(4,0.5),
179181
:min => InstructionCost(4,0.5),
180182
# Instruction(:ifelse) => InstructionCost(1, 0.5),

0 commit comments

Comments
 (0)