Refactored init and int64_value function using macro.
use macro