Forum: Mikrocontroller und Digitale Elektronik AVR 64bit/64 bit Division ASM


von Gonzo (Gast)


Lesenswert?

Der Titel sagst ja schon, gibts da was etabliertes oder muss ich mir das 
selbst schreiben?
vielen Dank :)

von Oliver J. (skriptkiddy)


Lesenswert?

Gonzo schrieb:
> Der Titel sagst ja schon, gibts da was etabliertes oder muss ich mir das
> selbst schreiben?
Ich würd einfach mal nachsehen, wie es der avr-gcc macht.

von Gonzo (Gast)


Lesenswert?

Kann der long long? Ich dachte nur bis 32 bit.

von Oliver J. (skriptkiddy)


Lesenswert?

Gonzo schrieb:
> Kann der long long? Ich dachte nur bis 32 bit.
Ich nehme stark an. Hier ist ein Auszug aus der 
/usr/lib/avr/include/stdint.h (avrlibc 1:1.7.1-2)
1
/** \ingroup avr_stdint
2
    64-bit signed type.
3
    \note This type is not available when the compiler
4
    option -mint8 is in effect. */
5
6
typedef signed long long int int64_t;
7
8
/** \ingroup avr_stdint
9
    64-bit unsigned type.
10
    \note This type is not available when the compiler
11
    option -mint8 is in effect. */
12
13
typedef unsigned long long int uint64_t;

Wenn der Datentyp unterstützt wird, dann wird die avr-libc sicher auch 
die passende Division parat haben.

Gruß Oliver

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.