/* V2MemTest - A CLI Tool to test & fix Voodoo² TMU System * Copyright (C) 2026 ChaCha * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef _DEF_UTILS_H_ #define _DEF_UTILS_H_ inline void printbin32(const unsigned long ulVal,const unsigned char bGroupByBytes); inline unsigned char count_bit32(const unsigned long ulVal); inline unsigned char count_bit8(const unsigned char ulVal); inline void printbin32Info(const unsigned long ulVal, const unsigned short uhb, const unsigned short ulb); unsigned long get_notnull_random(); unsigned long get_notnull_random_balanced(); unsigned char get_notnull8_random_balanced(); unsigned long get_notnull_random_balanced_mByte(); #endif //_DEF_UTILS_H_