Make 2 versions of the same function with hardcoded values.

Probably fix gcc issue when gcc think the value passed as an argument
is not a 8 bit immediate.

fix #19