[binlits] Move binary literals to system include so we can use them anywhere

This commit is contained in:
Kevin Lange 2011-03-29 13:49:15 -05:00
parent 6150acf320
commit a9365528b3
2 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,6 @@
/* This is the default VGA 8 x 12 font */
#include <system.h>
#define b(x) ((uint8_t)b_(0 ## x ## uL))
#define b_(x) ((x & 1) | (x >> 2 & 2) | (x >> 4 & 4) | (x >> 6 & 8) | (x >> 8 & 16) | (x >> 10 & 32) | (x >> 12 & 64) | (x >> 14 & 128))
uint8_t number_font[][12] = {
{ b(00000000),
b(00000000),

View File

@ -3,6 +3,9 @@
#define _KERNEL_
#include <types.h>
/* Binary Literals */
#define b(x) ((uint8_t)b_(0 ## x ## uL))
#define b_(x) ((x & 1) | (x >> 2 & 2) | (x >> 4 & 4) | (x >> 6 & 8) | (x >> 8 & 16) | (x >> 10 & 32) | (x >> 12 & 64) | (x >> 14 & 128))
/* Unimportant Kernel Strings */
#define KERNEL_UNAME "ToAruOS"