Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove LLVM update comments #5530

Merged
merged 1 commit into from
Jan 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions src/math/libm.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,6 @@
{% end %}

lib LibM
# ## To be uncommented once LLVM is updated
# LLVM binary operations
# fun div_i32 = "llvm.sdiv"(value1 : Int32, value2 : Int32) : Int32
# fun div_f32 = "llvm.fdiv"(value1 : Float32, value2 : Float32) : Float32
# fun div_f64 = "llvm.fdiv"(value1 : Float64, value2 : Float64) : Float64
# fun rem_i32 = "llvm.srem"(value1 : Int32, value2 : Int32) : Int32
# fun rem_f32 = "llvm.frem"(value1 : Float32, value2 : Float32) : Float32
# fun rem_f64 = "llvm.frem"(value1 : Float64, value2 : Float64) : Float64

# LLVM standard C library intrinsics
fun ceil_f32 = "llvm.ceil.f32"(value : Float32) : Float32
fun ceil_f64 = "llvm.ceil.f64"(value : Float64) : Float64
Expand Down
34 changes: 0 additions & 34 deletions src/math/math.cr
Original file line number Diff line number Diff line change
Expand Up @@ -109,23 +109,6 @@ module Math
end
{% end %}

# ## To be uncommented once LLVM is updated
# def div(value1 : Int32, value2 : Int32)
# LibM.div_i32(value1, value2)
# end
#
# def div(value1 : Float32, value2 : Float32)
# LibM.div_f32(value1, value2)
# end
#
# def div(value1 : Float64, value2 : Float64)
# LibM.div_f64(value1, value2)
# end
#
# def div(value1, value2)
# LibM.div(value1, value2)
# end

# Returns the logarithm of *numeric* to the base *base*.
def log(numeric, base)
log(numeric) / log(base)
Expand Down Expand Up @@ -157,23 +140,6 @@ module Math
value1 <= value2 ? value1 : value2
end

# ## To be uncommented once LLVM is updated
# def rem(value1 : Int32, value2 : Int32)
# LibM.rem_i32(value1, value2)
# end

# def rem(value1 : Float32, value2 : Float32)
# LibM.rem_f32(value1, value2)
# end

# def rem(value1 : Float64, value2 : Float64)
# LibM.rem_f64(value1, value2)
# end

# def rem(value1, value2)
# LibM.rem(value1, value2)
# end

{% for name in %w(besselj bessely) %}
# Calculates {{name.id}} with parameters *value1* and *value2*.
def {{name.id}}(value1 : Int32, value2 : Float32)
Expand Down