Pages: 1
  Print  
Author Topic: Laziness Buffer  (Read 1333 times)
Offline (Male) RetroX
Posted on: October 15, 2011, 04:20:27 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
typedef signed char byte;
typedef unsigned char ubyte;
typedef signed char schar;
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef long long llong;
typedef unsigned long long ullong;
« Last Edit: October 15, 2011, 04:26:03 PM by RetroX » Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Unknown gender) luiscubal
Reply #1 Posted on: October 15, 2011, 04:42:36 PM
Member
Joined: Jun 2009
Posts: 452

View Profile Email
Quote
typedef signed char byte;
typedef unsigned char ubyte;
Oh, no you didn't.

byte is(as of newest standards) required to be at least 8 bits, but not necessarily.
For precise sizes, see <stdint.h>(which does include int8_t and uint8_t)

Also, some languages(e.g. C#) have "byte" unsigned, and then have "sbyte", which is signed.
Logged
Offline (Male) RetroX
Reply #2 Posted on: October 15, 2011, 04:49:39 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Quote
typedef signed char byte;
typedef unsigned char ubyte;
Oh, no you didn't.

byte is(as of newest standards) required to be at least 8 bits, but not necessarily.
For precise sizes, see <stdint.h>(which does include int8_t and uint8_t)

Also, some languages(e.g. C#) have "byte" unsigned, and then have "sbyte", which is signed.
Quote
laziness buffer

Also, I probably would swap those two.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Pages: 1
  Print