Use the C macro for constants instead of hard-coded values

Signed-off-by: Jacky Boen <aqiank@gmail.com>