License update
Ported constants
Helper macros