avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] 16-bit math


From: David Brown
Subject: Re: [avr-gcc-list] 16-bit math
Date: Sun, 14 Oct 2007 16:21:47 +0200
User-agent: Thunderbird 2.0.0.6 (Windows/20070728)

Manne Tallmarken wrote:
Up to now, I have coded in assembler for my microcontrollers. Now
it's time for me to migrate to avr-libc, but I just can't believe
what I'am reading in the manual. It seems that avr-libc have support
for 16-bit math calculations for 8-bit controllers. This is really
fantastic! Is there anything I have missed or is it simply to use the
instructions and everything will work?

Thanks,

Manne


I'm not sure if I understand the question right - are you surprised that avr-libc contains routines for 16-bit arithmetic on the 8-bit AVR? There is nothing magical about this - 8-bit processors do 16-bit arithmetic in exactly the same way as you do arithmetic with 2-digit numbers. I'd agree that avr-libc is fantastic, but not because it supports 16-bit maths!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]