Migrate perf-critical functions away from librs.

BUG=3497315

Change-Id: Ieaa0d64933767d422aa62740d72b31042dcd4a2f
diff --git a/libs/rs/rsAllocation.h b/libs/rs/rsAllocation.h
index f538dd1..f2589c0 100644
--- a/libs/rs/rsAllocation.h
+++ b/libs/rs/rsAllocation.h
@@ -25,8 +25,16 @@
 
 class Program;
 
+/*****************************************************************************
+ * CAUTION
+ *
+ * Any layout changes for this class may require a corresponding change to be
+ * made to frameworks/compile/libbcc/lib/ScriptCRT/rs_core.c, which contains
+ * a partial copy of the information below.
+ *
+ *****************************************************************************/
 class Allocation : public ObjectBase {
-    // The graphics equilivent of malloc.  The allocation contains a structure of elements.
+    // The graphics equivalent of malloc.  The allocation contains a structure of elements.
 
 public:
     struct Hal {