summaryrefslogtreecommitdiff
path: root/libjava/sysdep/pa/descriptor.h
blob: d9888516d9c73e7f071a79848f227874aa665bca (plain)
1
2
3
4
5
6
7
// Given a function pointer, return the code address.
// If the plabel bit is set, mask it off and return the code from the
// first word of the function descriptor.  Otherwise, the function
// pointer is the code address.

#define UNWRAP_FUNCTION_DESCRIPTOR(X) \
  (((unsigned int)(X)) & 2 ? *(void **)(((unsigned int)(X)) & ~3) : (X))