# Bit Manipulation Instruction Set

**URL:** https://discourse.julialang.org/t/bit-manipulation-instruction-set/5368
**Category:** General Usage
**Tags:** question
**Created:** [August 14, 2017, 2:49am UTC](https://discourse.julialang.org/t/bit-manipulation-instruction-set/5368 "2017-08-14T02:49:18Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)
#### Post date: [October 20, 2017, 12:05pm UTC](https://discourse.julialang.org/t/bit-manipulation-instruction-set/5368/5 "2017-10-20T12:05:05Z")

</div>

> [@greg\_plowman](#):
>
> Firstly, is this the right way?

A rought search through LLVM code (searching for pdep or PDEP) suggests that LLVM doesn’t have any code that do it automatically so this is likely the right/only way right now.

> [@greg\_plowman](#):
>
> Secondly, how can determine if a Julia build / hardware supports this instruction?

That’ll be the next step for my PR.

---

_[View the full topic](https://discourse.julialang.org/t/bit-manipulation-instruction-set/5368)._
