title: Implementing Algorithms in RenderScript
body: <p>I am currently doing a project on benchmarking GPU performance vs CPU performance in mobile devices (Android) through a variety of algorithms. (Mainly computational geometric ones)</p>
  
  <p>The problem I am currently facing, is how to implement these algorithms efficiently using RenderScript. For example, given a Topology Library which contains several algorithms such as Point in Polygon Algorithm, do I have to manually rewrite these algorithms in C for use with RenderScript, or is there some magical way to utilize them in RenderScript without having to rewrite the algo? </p>
  
  <p>For example, I am using the JTS Topology Suite (for Java) and am trying to implement the Point in Polygon Analysis. Do I have to rewrite the entire algorithm in C, or find an external C library and import it into renderscript, or some magical way to utilize them in RS?</p>
  
  <p>Thank you! </p>