AVR-LibC  2.3.0
Standard C library for AVR-GCC
 

AVR-LibC Manual

AVR-LibC Sources

Main Page

User Manual

Lib­rary Refe­rence

FAQ

Exam­ple Pro­jects

Index

Loading...
Searching...
No Matches
Functions
<avr/builtins.h>: avr-gcc builtins documentation

Functions

void __builtin_avr_sei (void)
 
void __builtin_avr_cli (void)
 
void __builtin_avr_sleep (void)
 
void __builtin_avr_wdr (void)
 
uint8_t __builtin_avr_swap (uint8_t __b)
 
uint16_t __builtin_avr_fmul (uint8_t __a, uint8_t __b)
 
int16_t __builtin_avr_fmuls (int8_t __a, int8_t __b)
 
int16_t __builtin_avr_fmulsu (int8_t __a, uint8_t __b)
 
float __builtin_powif (float base, int expo)
 
double __builtin_powi (double base, int expo)
 
long double __builtin_powil (long double base, int expo)
 

Detailed Description

#include <avr/builtins.h>
Note
This file only documents some avr-gcc builtins. For functions built-in in the compiler, there should be no prototype declarations.

See also the GCC documentation for a full list of avr-gcc builtins.

Function Documentation

◆ __builtin_avr_cli()

void __builtin_avr_cli ( void  )

Disables all interrupts by clearing the global interrupt mask.

◆ __builtin_avr_fmul()

uint16_t __builtin_avr_fmul ( uint8_t  __a,
uint8_t  __b 
)

Emits an FMUL (fractional multiply unsigned) instruction.

◆ __builtin_avr_fmuls()

int16_t __builtin_avr_fmuls ( int8_t  __a,
int8_t  __b 
)

Emits an FMUL (fractional multiply signed) instruction.

◆ __builtin_avr_fmulsu()

int16_t __builtin_avr_fmulsu ( int8_t  __a,
uint8_t  __b 
)

Emits an FMUL (fractional multiply signed with unsigned) instruction.

◆ __builtin_avr_sei()

void __builtin_avr_sei ( void  )

Enables interrupts by setting the global interrupt mask.

◆ __builtin_avr_sleep()

void __builtin_avr_sleep ( void  )

Emits a SLEEP instruction.

◆ __builtin_avr_swap()

uint8_t __builtin_avr_swap ( uint8_t  __b)

Emits a SWAP (nibble swap) instruction on __b.

◆ __builtin_avr_wdr()

void __builtin_avr_wdr ( void  )

Emits a WDR (watchdog reset) instruction.

◆ __builtin_powi()

double __builtin_powi ( double  base,
int  expo 
)

Returns base raised to the power of expo. Since avr-gcc v15 this function is implemented in assembly.

◆ __builtin_powif()

float __builtin_powif ( float  base,
int  expo 
)

Returns base raised to the power of expo. Since avr-gcc v15 this function is implemented in assembly. See also the benchmarks.

◆ __builtin_powil()

long double __builtin_powil ( long double  base,
int  expo 
)

Returns base raised to the power of expo. Since avr-gcc v15 this function is implemented in assembly. See also the benchmarks.