+ return afb_context_get_loa(context) >= loa;
+}
+
+static inline void *loa_key(struct afb_context *context)
+{
+ return (void*)(1+(intptr_t)(context->api_key));
+}
+
+static inline void *loa2ptr(unsigned loa)
+{
+ return (void*)(intptr_t)loa;
+}
+
+static inline unsigned ptr2loa(void *ptr)
+{
+ return (unsigned)(intptr_t)ptr;