descriptor.h 337 B

12345678
  1. // Given a function pointer, return the code address.
  2. // If the plabel bit is set, mask it off and return the code from the
  3. // first word of the function descriptor. Otherwise, the function
  4. // pointer is the code address.
  5. #define UNWRAP_FUNCTION_DESCRIPTOR(X) \
  6. (((unsigned int)(X)) & 2 ? *(void **)(((unsigned int)(X)) & ~3) : (X))