<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=4&amp;t=22531&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2019-09-02T12:55:50+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=22531&amp;mode</id>
<entry>
<author><name><![CDATA[Maureli]]></name></author>
<updated>2019-09-02T12:55:50+01:00</updated>
<published>2019-09-02T12:55:50+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221765#p221765</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221765#p221765"/>
<title type="html"><![CDATA[Re: uint64_t ciekawostka]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221765#p221765"><![CDATA[
Wrzucam parę cennych informacji na temat błędu dotyczącego operacji AND na liczbach typu uint64_t w avr-gcc <br /><br /><a href="https://stackoverflow.com/questions/50091499/uint64-t-variable-with-operations"  class="postlink">https://stackoverflow.com/questions/50091499/uint64-t-variable-with-operations</a><br /><br /><a href="https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805"  class="postlink">https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805</a><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=728">Maureli</a> — 2 wrz 2019, o 12:55</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Maureli]]></name></author>
<updated>2019-09-01T16:56:22+01:00</updated>
<published>2019-09-01T16:56:22+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221755#p221755</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221755#p221755"/>
<title type="html"><![CDATA[Re: uint64_t ciekawostka]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221755#p221755"><![CDATA[
uart_putint standardowo przyjmuje zmienną typu int, ALE!!!! wynik może przyjąć tylko wartość 0 lub 1 bo jest to porównanie więc tak naprawdę typ zmiennej nie ma znaczenia. Zastanawia mnie dlaczego ta sama funkcja w pętli głównej wyświetla prawidłową wartość a wywołana z poziomu funkcji test64 i test64_p wyświetla wartość 0.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=728">Maureli</a> — 1 wrz 2019, o 16:56</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2019-09-01T16:49:43+01:00</updated>
<published>2019-09-01T16:49:43+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221754#p221754</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221754#p221754"/>
<title type="html"><![CDATA[Re: uint64_t ciekawostka]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221754#p221754"><![CDATA[
No przecież zależy czym posługujesz się w putint<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 1 wrz 2019, o 16:49</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Maureli]]></name></author>
<updated>2019-09-01T16:32:20+01:00</updated>
<published>2019-09-01T16:32:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221752#p221752</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221752#p221752"/>
<title type="html"><![CDATA[uint64_t ciekawostka]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22531&amp;p=221752#p221752"><![CDATA[
Nie ogarniam, może ktoś pomoże:<br />Próbuje wyświetlić poprzez urata wynik maskowania zmiennej 64 bitowej. A dokładnie sprawdzam czy 9 najbardziej znaczących bitów ma wartość 1.  <br /><br />uart_putint w funkcji main wyświetla wartość prawidłową czyli 1, natomiast funkcje test64 i test64_p wyświetlają wartość 0. Co jest do licha?<br /><br />[syntax=c]#define SBIT_MASK64  0xff80000000000000<br /><br />uint64_t b;<br /><br /><br />void test64_p( uint64_t *dd )    {<br />    uart_putint(0, ((SBIT_MASK64 &amp; *dd) == SBIT_MASK64), 10);<br />}<br /><br />void test64( uint64_t dd )    {<br />    uart_putint(0, ((SBIT_MASK64 &amp; dd) == SBIT_MASK64), 10);<br />}<br /><br /><br />int main(void) {<br />    sei();<br />    uart_init();<br /><br />    b = 0xff8063194b17d310;<br /><br />    uart_putint(0, ((SBIT_MASK64 &amp; b) == SBIT_MASK64), 10);<br />    test64(b);<br />    test64_p(&amp;b);<br /><br />    while(1){<br /><br />    }<br /><br />}<br /><br />}[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=728">Maureli</a> — 1 wrz 2019, o 16:32</p><hr />
]]></content>
</entry>
</feed>