Choco OS
V.0.16.9.0
Join to the chocolate world
|
Helper macros for configurations files. More...
Go to the source code of this file.
Macros | |
#define | ON 2 |
Function is turned on. | |
#define | OFF 1 |
Function is turned off. | |
#define | LEVEL(Lvl) (Lvl) |
Function is set to LEVEL. | |
#define | PERCENT(Percent) ((float)Percent/(float)100) |
Number of percent. | |
#define | B(Bytes) (Bytes) |
Number of bytes. | |
#define | kB(kBytes) (kBytes * 1024) |
Number of kB. | |
#define | MB(MBytes) (MBytes * kB(1024)) |
Number of MB. | |
#define | GB(GBytes) (GBytes * MB(1024ULL)) |
Number of GB. | |
#define | TB(TBytes) (TBytes * GB(1024)) |
Number of TB. | |
#define | Hz(Freq) (oC_Hz(Freq)) |
Number of Hz. | |
#define | kHz(Freq) (oC_kHz(Freq)) |
Number of kHz. | |
#define | MHz(Freq) (oC_MHz(Freq)) |
Number of MHz. | |
#define | GHz(Freq) (oC_GHz(Freq)) |
Number of GHz. | |
#define | ns(time) (oC_ns(time)) |
Number of ns. | |
#define | us(time) (oC_us(time)) |
Number of us. | |
#define | ms(time) (oC_ms(time)) |
Number of ms. | |
#define | s(time) (oC_s(time)) |
Number of s. | |
#define | min(time) (oC_min(time)) |
Number of min. | |
#define | hour(time) (oC_hour(time)) |
Number of hour. | |
#define | day(time) (oC_day(time)) |
Number of day. | |
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 2 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, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file oc_cfg.h.