opflags: Convert is_class and is_reg_class to helpers
commit3c755dac88039b718d52ef56e8f74b5f65f3b55b
authorCyrill Gorcunov <gorcunov@gmail.com>
Sat, 13 Oct 2018 19:57:30 +0000 (13 22:57 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Sat, 13 Oct 2018 19:57:30 +0000 (13 22:57 +0300)
tree410031506c17e0623316fbe958e338e3f12e958d
parent67f2ca2b3fb4e009ef3f7885e848b99e6a81ab29
opflags: Convert is_class and is_reg_class to helpers

So we can test for out of bound access and make
helpers safe to use.

https://bugzilla.nasm.us/show_bug.cgi?id=3392447

Reported-by: Jun <jxx13@psu.edu>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
include/opflags.h