result_flag=BitClear(flag, clearflags);
BitClear(flag, clearflags);
flag: This is the flag to modify.
clearflags: These are the flags to remove.