clang 20.0.0git
Classes | Macros | Typedefs | Functions | Variables
larchintrin.h File Reference

Go to the source code of this file.

Classes

struct  rdtime
 

Macros

#define __break(_1)   __builtin_loongarch_break((_1))
 
#define __dbar(_1)   __builtin_loongarch_dbar((_1))
 
#define __ibar(_1)   __builtin_loongarch_ibar((_1))
 
#define __movfcsr2gr(_1)   __builtin_loongarch_movfcsr2gr((_1));
 
#define __movgr2fcsr(_1, _2)    __builtin_loongarch_movgr2fcsr((_1), (unsigned int)_2);
 
#define __syscall(_1)   __builtin_loongarch_syscall((_1))
 
#define __csrrd_w(_1)   ((unsigned int)__builtin_loongarch_csrrd_w((_1)))
 
#define __csrwr_w(_1, _2)    ((unsigned int)__builtin_loongarch_csrwr_w((unsigned int)(_1), (_2)))
 
#define __csrxchg_w(_1, _2, _3)
 
#define __frecipe_s(_1)    (float)__builtin_loongarch_frecipe_s((float)_1)
 
#define __frecipe_d(_1)    (double)__builtin_loongarch_frecipe_d((double)_1)
 
#define __frsqrte_s(_1)    (float)__builtin_loongarch_frsqrte_s((float)_1)
 
#define __frsqrte_d(_1)    (double)__builtin_loongarch_frsqrte_d((double)_1)
 

Typedefs

typedef struct rdtime __rdtime_t
 

Functions

__inline __rdtime_t __attribute__ ((__gnu_inline__, __always_inline__, __artificial__)) __rdtimeh_w(void)
 

Variables

__inline void unsigned int _2
 

Macro Definition Documentation

◆ __break

#define __break (   _1)    __builtin_loongarch_break((_1))

Definition at line 107 of file larchintrin.h.

◆ __csrrd_w

#define __csrrd_w (   _1)    ((unsigned int)__builtin_loongarch_csrrd_w((_1)))

Definition at line 130 of file larchintrin.h.

◆ __csrwr_w

#define __csrwr_w (   _1,
  _2 
)     ((unsigned int)__builtin_loongarch_csrwr_w((unsigned int)(_1), (_2)))

Definition at line 132 of file larchintrin.h.

◆ __csrxchg_w

#define __csrxchg_w (   _1,
  _2,
  _3 
)
Value:
((unsigned int)__builtin_loongarch_csrxchg_w((unsigned int)(_1), \
(unsigned int)(_2), (_3)))
__device__ int
__inline void unsigned int _2
Definition: larchintrin.h:181

Definition at line 135 of file larchintrin.h.

◆ __dbar

#define __dbar (   _1)    __builtin_loongarch_dbar((_1))

Definition at line 119 of file larchintrin.h.

◆ __frecipe_d

#define __frecipe_d (   _1)     (double)__builtin_loongarch_frecipe_d((double)_1)

Definition at line 234 of file larchintrin.h.

◆ __frecipe_s

#define __frecipe_s (   _1)     (float)__builtin_loongarch_frecipe_s((float)_1)

Definition at line 231 of file larchintrin.h.

◆ __frsqrte_d

#define __frsqrte_d (   _1)     (double)__builtin_loongarch_frsqrte_d((double)_1)

Definition at line 240 of file larchintrin.h.

◆ __frsqrte_s

#define __frsqrte_s (   _1)     (float)__builtin_loongarch_frsqrte_s((float)_1)

Definition at line 237 of file larchintrin.h.

◆ __ibar

#define __ibar (   _1)    __builtin_loongarch_ibar((_1))

Definition at line 121 of file larchintrin.h.

◆ __movfcsr2gr

#define __movfcsr2gr (   _1)    __builtin_loongarch_movfcsr2gr((_1));

Definition at line 123 of file larchintrin.h.

◆ __movgr2fcsr

#define __movgr2fcsr (   _1,
  _2 
)     __builtin_loongarch_movgr2fcsr((_1), (unsigned int)_2);

Definition at line 125 of file larchintrin.h.

◆ __syscall

#define __syscall (   _1)    __builtin_loongarch_syscall((_1))

Definition at line 128 of file larchintrin.h.

Typedef Documentation

◆ __rdtime_t

typedef struct rdtime __rdtime_t

Function Documentation

◆ __attribute__()

__inline __rdtime_t __attribute__ ( (__gnu_inline__, __always_inline__, __artificial__)  )

Definition at line 40 of file larchintrin.h.

References rdtime::timeid, and rdtime::value.

Variable Documentation

◆ _2

__inline void unsigned int _2
Initial value:
{
__builtin_loongarch_iocsrwr_b((unsigned char)_1, (unsigned int)_2)

Definition at line 181 of file larchintrin.h.