On Tue, Jul 28, 2015 at 9:02 AM, Galen Lynch <
galen...@gmail.com> wrote:
> Does rem(x, bitsT) or x % bitsT reinterpret the bits in variable x as a bits
AFAICT, `rem` is basically doing the C cast.
> type T, and is this "in place"? I noticed that in some places when Julia
Bitstype are immutable so this is never in place. However, it doesn't
need any boxing either. It should be as efficient as when you write a
c cast in c.
```julia
julia> @code_llvm rem(1, UInt32)
define i32 @julia_rem_20919(i64, %jl_value_t*) {
top:
%2 = trunc i64 %0 to i32
ret i32 %2
}
```
> gets a pointer from ccall it uses " % T" after the ccall, presumably to
> give Julia information about its type (boxing it?). Simple tests, such as
I don't see a method for rem that applies to `Ptr`. Where do you see it?