<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>LeafLabs Garden &#187; Topic: 2 byte data type</title>
		<link>http://forums.leaflabs.com/topic.php?id=11575</link>
		<description>A place to share, learn, and grow...</description>
		<language>en-US</language>
		<pubDate>Fri, 22 Jan 2016 00:22:31 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://forums.leaflabs.com/search.php</link>
		</textInput>
		<atom:link href="http://forums.leaflabs.com/rss.php?topic=11575" rel="self" type="application/rss+xml" />

		<item>
			<title>gbulmer on "2 byte data type"</title>
			<link>http://forums.leaflabs.com/topic.php?id=11575#post-25960</link>
			<pubDate>Mon, 13 May 2013 07:12:24 +0000</pubDate>
			<dc:creator>gbulmer</dc:creator>
			<guid isPermaLink="false">25960@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;pyrohaz - It might be worth noting for future reference that you could get the compiler to help.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;void loop() {
  struct { char a, b; } twochar;

  // print the size of each type:
  SerialUSB.print(&#38;quot;sizeof(int) &#38;quot;); SerialUSB.println(sizeof(int));
  SerialUSB.print(&#38;quot;sizeof(char) &#38;quot;); SerialUSB.println(sizeof(char));
  SerialUSB.print(&#38;quot;sizeof(long) &#38;quot;); SerialUSB.println(sizeof(long));
  SerialUSB.print(&#38;quot;sizeof(long long) &#38;quot;); SerialUSB.println(sizeof(long long)); // !
  SerialUSB.print(&#38;quot;sizeof(short) &#38;quot;); SerialUSB.println(sizeof(short));
  SerialUSB.print(&#38;quot;sizeof(float) &#38;quot;); SerialUSB.println(sizeof(float));
  SerialUSB.print(&#38;quot;sizeof(double) &#38;quot;); SerialUSB.println(sizeof(double));
  SerialUSB.print(&#38;quot;sizeof(twochar) &#38;quot;); SerialUSB.println(sizeof(twochar));
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>pyrohaz on "2 byte data type"</title>
			<link>http://forums.leaflabs.com/topic.php?id=11575#post-25915</link>
			<pubDate>Sun, 12 May 2013 20:32:09 +0000</pubDate>
			<dc:creator>pyrohaz</dc:creator>
			<guid isPermaLink="false">25915@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Ah! I can use int16, my apologies, please disregard this thread.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>pyrohaz on "2 byte data type"</title>
			<link>http://forums.leaflabs.com/topic.php?id=11575#post-25914</link>
			<pubDate>Sun, 12 May 2013 20:23:41 +0000</pubDate>
			<dc:creator>pyrohaz</dc:creator>
			<guid isPermaLink="false">25914@http://forums.leaflabs.com/</guid>
			<description>&#60;p&#62;Hey guys, I need an array of length: 8192 storing data between -32768 and 32767 (2^16-1 range, equivalent to two bytes) after looking at the supported maple types, there seems to be no form of 2 byte data type and storing these values as ints consumes too much data, around 32.8kb! If I could store each value as a two bytes rather than 4, this would halve right?&#60;/p&#62;
&#60;p&#62;Therefore, how can I do so?&#60;/p&#62;
&#60;p&#62;Cheers,&#60;br /&#62;
Harris
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
