Functions
complex.h File Reference

Transactional wrappers for interfaces of <complex.h>. More...

#include <complex.h>
#include <picotm/compiler.h>
#include <picotm/config/picotm-libm-config.h>
#include <picotm/picotm-tm.h>

Functions

PICOTM_NOTHROW double cabs_tx (double complex z)
 
PICOTM_NOTHROW float cabsf_tx (float complex z)
 
PICOTM_NOTHROW long double cabsl_tx (long double complex z)
 
PICOTM_NOTHROW double complex cacos_tx (double complex z)
 
PICOTM_NOTHROW float complex cacosf_tx (float complex z)
 
PICOTM_NOTHROW double complex cacosh_tx (double complex z)
 
PICOTM_NOTHROW float complex cacoshf_tx (float complex z)
 
PICOTM_NOTHROW long double complex cacoshl_tx (long double complex z)
 
PICOTM_NOTHROW long double complex cacosl_tx (long double complex z)
 
PICOTM_NOTHROW double carg_tx (double complex z)
 
PICOTM_NOTHROW float cargf_tx (float complex z)
 
PICOTM_NOTHROW long double cargl_tx (long double complex z)
 
PICOTM_NOTHROW double complex casin_tx (double complex z)
 
PICOTM_NOTHROW float complex casinf_tx (float complex z)
 
PICOTM_NOTHROW double complex casinh_tx (double complex z)
 
PICOTM_NOTHROW float complex casinhf_tx (float complex z)
 
PICOTM_NOTHROW long double complex casinhl_tx (long double complex z)
 
PICOTM_NOTHROW long double complex casinl_tx (long double complex z)
 
PICOTM_NOTHROW double complex catan_tx (double complex z)
 
PICOTM_NOTHROW float complex catanf_tx (float complex z)
 
PICOTM_NOTHROW double complex catanh_tx (double complex z)
 
PICOTM_NOTHROW float complex catanhf_tx (float complex z)
 
PICOTM_NOTHROW long double complex catanhl_tx (long double complex z)
 
PICOTM_NOTHROW long double complex catanl_tx (long double complex z)
 
PICOTM_NOTHROW double complex ccos_tx (double complex z)
 
PICOTM_NOTHROW float complex ccosf_tx (float complex z)
 
PICOTM_NOTHROW double complex ccosh_tx (double complex z)
 
PICOTM_NOTHROW float complex ccoshf_tx (float complex z)
 
PICOTM_NOTHROW long double complex ccoshl_tx (long double complex z)
 
PICOTM_NOTHROW long double complex ccosl_tx (long double complex z)
 
PICOTM_NOTHROW double complex cexp_tx (double complex z)
 
PICOTM_NOTHROW float complex cexpf_tx (float complex z)
 
PICOTM_NOTHROW long double complex cexpl_tx (long double complex z)
 
PICOTM_NOTHROW double cimag_tx (double complex z)
 
PICOTM_NOTHROW float cimagf_tx (float complex z)
 
PICOTM_NOTHROW long double cimagl_tx (long double complex z)
 
PICOTM_NOTHROW double complex clog_tx (double complex z)
 
PICOTM_NOTHROW float complex clogf_tx (float complex z)
 
PICOTM_NOTHROW long double complex clogl_tx (long double complex z)
 
PICOTM_NOTHROW double complex conj_tx (double complex z)
 
PICOTM_NOTHROW float complex conjf_tx (float complex z)
 
PICOTM_NOTHROW long double complex conjl_tx (long double complex z)
 
PICOTM_NOTHROW double complex cpow_tx (double complex x, double complex y)
 
PICOTM_NOTHROW float complex cpowf_tx (float complex x, float complex y)
 
PICOTM_NOTHROW long double complex cpowl_tx (long double complex x, long double complex y)
 
PICOTM_NOTHROW double complex cproj_tx (double complex z)
 
PICOTM_NOTHROW float complex cprojf_tx (float complex z)
 
PICOTM_NOTHROW long double complex cprojl_tx (long double complex z)
 
PICOTM_NOTHROW double creal_tx (double complex z)
 
PICOTM_NOTHROW float crealf_tx (float complex z)
 
PICOTM_NOTHROW long double creall_tx (long double complex z)
 
PICOTM_NOTHROW double complex csin_tx (double complex z)
 
PICOTM_NOTHROW float complex csinf_tx (float complex z)
 
PICOTM_NOTHROW double complex csinh_tx (double complex z)
 
PICOTM_NOTHROW float complex csinhf_tx (float complex z)
 
PICOTM_NOTHROW long double complex csinhl_tx (long double complex z)
 
PICOTM_NOTHROW long double complex csinl_tx (long double complex z)
 
PICOTM_NOTHROW double complex csqrt_tx (double complex z)
 
PICOTM_NOTHROW float complex csqrtf_tx (float complex z)
 
PICOTM_NOTHROW long double complex csqrtl_tx (long double complex z)
 
PICOTM_NOTHROW double complex ctan_tx (double complex z)
 
PICOTM_NOTHROW float complex ctanf_tx (float complex z)
 
PICOTM_NOTHROW double complex ctanh_tx (double complex z)
 
PICOTM_NOTHROW float complex ctanhf_tx (float complex z)
 
PICOTM_NOTHROW long double complex ctanhl_tx (long double complex z)
 
PICOTM_NOTHROW long double complex ctanl_tx (long double complex z)
 
static double _Complex load_cdouble_tx (const double _Complex *addr)
 
static float _Complex load_cfloat_tx (const float _Complex *addr)
 
static long double _Complex load_cldouble_tx (const long double _Complex *addr)
 
static void privatize_cdouble_tx (const double _Complex *addr, unsigned long flags)
 
static void privatize_cfloat_tx (const float _Complex *addr, unsigned long flags)
 
static void privatize_cldouble_tx (const long double _Complex *addr, unsigned long flags)
 
static void store_cdouble_tx (double _Complex *addr, double _Complex value)
 
static void store_cfloat_tx (float _Complex *addr, float _Complex value)
 
static void store_cldouble_tx (long double _Complex *addr, long double _Complex value)
 

Function Documentation

◆ cabs_tx()

PICOTM_NOTHROW double cabs_tx ( double complex  z)

A transaction-safe implementation of cabs().

◆ cabsf_tx()

PICOTM_NOTHROW float cabsf_tx ( float complex  z)

A transaction-safe implementation of cabsf().

◆ cabsl_tx()

PICOTM_NOTHROW long double cabsl_tx ( long double complex  z)

A transaction-safe implementation of cabsl().

◆ cacos_tx()

PICOTM_NOTHROW double complex cacos_tx ( double complex  z)

A transaction-safe implementation of cacos().

◆ cacosf_tx()

PICOTM_NOTHROW float complex cacosf_tx ( float complex  z)

A transaction-safe implementation of cacosf().

◆ cacosh_tx()

PICOTM_NOTHROW double complex cacosh_tx ( double complex  z)

A transaction-safe implementation of cacosh().

◆ cacoshf_tx()

PICOTM_NOTHROW float complex cacoshf_tx ( float complex  z)

A transaction-safe implementation of cacoshf().

◆ cacoshl_tx()

PICOTM_NOTHROW long double complex cacoshl_tx ( long double complex  z)

A transaction-safe implementation of cacoshl().

◆ cacosl_tx()

PICOTM_NOTHROW long double complex cacosl_tx ( long double complex  z)

A transaction-safe implementation of cacosl().

◆ carg_tx()

PICOTM_NOTHROW double carg_tx ( double complex  z)

A transaction-safe implementation of carg().

◆ cargf_tx()

PICOTM_NOTHROW float cargf_tx ( float complex  z)

A transaction-safe implementation of cargf().

◆ cargl_tx()

PICOTM_NOTHROW long double cargl_tx ( long double complex  z)

A transaction-safe implementation of cargl().

◆ casin_tx()

PICOTM_NOTHROW double complex casin_tx ( double complex  z)

A transaction-safe implementation of casin().

◆ casinf_tx()

PICOTM_NOTHROW float complex casinf_tx ( float complex  z)

A transaction-safe implementation of casinf().

◆ casinh_tx()

PICOTM_NOTHROW double complex casinh_tx ( double complex  z)

A transaction-safe implementation of casinh().

◆ casinhf_tx()

PICOTM_NOTHROW float complex casinhf_tx ( float complex  z)

A transaction-safe implementation of casinhf().

◆ casinhl_tx()

PICOTM_NOTHROW long double complex casinhl_tx ( long double complex  z)

A transaction-safe implementation of casinhl().

◆ casinl_tx()

PICOTM_NOTHROW long double complex casinl_tx ( long double complex  z)

A transaction-safe implementation of casinl().

◆ catan_tx()

PICOTM_NOTHROW double complex catan_tx ( double complex  z)

A transaction-safe implementation of catan().

◆ catanf_tx()

PICOTM_NOTHROW float complex catanf_tx ( float complex  z)

A transaction-safe implementation of catanf().

◆ catanh_tx()

PICOTM_NOTHROW double complex catanh_tx ( double complex  z)

A transaction-safe implementation of catanh().

◆ catanhf_tx()

PICOTM_NOTHROW float complex catanhf_tx ( float complex  z)

A transaction-safe implementation of catanhf().

◆ catanhl_tx()

PICOTM_NOTHROW long double complex catanhl_tx ( long double complex  z)

A transaction-safe implementation of catanhl().

◆ catanl_tx()

PICOTM_NOTHROW long double complex catanl_tx ( long double complex  z)

A transaction-safe implementation of catanl().

◆ ccos_tx()

PICOTM_NOTHROW double complex ccos_tx ( double complex  z)

A transaction-safe implementation of ccos().

◆ ccosf_tx()

PICOTM_NOTHROW float complex ccosf_tx ( float complex  z)

A transaction-safe implementation of ccosf().

◆ ccosh_tx()

PICOTM_NOTHROW double complex ccosh_tx ( double complex  z)

A transaction-safe implementation of ccosh().

◆ ccoshf_tx()

PICOTM_NOTHROW float complex ccoshf_tx ( float complex  z)

A transaction-safe implementation of ccoshf().

◆ ccoshl_tx()

PICOTM_NOTHROW long double complex ccoshl_tx ( long double complex  z)

A transaction-safe implementation of ccoshl().

◆ ccosl_tx()

PICOTM_NOTHROW long double complex ccosl_tx ( long double complex  z)

A transaction-safe implementation of ccosl().

◆ cexp_tx()

PICOTM_NOTHROW double complex cexp_tx ( double complex  z)

A transaction-safe implementation of cexp().

◆ cexpf_tx()

PICOTM_NOTHROW float complex cexpf_tx ( float complex  z)

A transaction-safe implementation of cexpf().

◆ cexpl_tx()

PICOTM_NOTHROW long double complex cexpl_tx ( long double complex  z)

A transaction-safe implementation of cexpl().

◆ cimag_tx()

PICOTM_NOTHROW double cimag_tx ( double complex  z)

A transaction-safe implementation of cimag().

◆ cimagf_tx()

PICOTM_NOTHROW float cimagf_tx ( float complex  z)

A transaction-safe implementation of cimagf().

◆ cimagl_tx()

PICOTM_NOTHROW long double cimagl_tx ( long double complex  z)

A transaction-safe implementation of cimagl().

◆ clog_tx()

PICOTM_NOTHROW double complex clog_tx ( double complex  z)

A transaction-safe implementation of clog().

◆ clogf_tx()

PICOTM_NOTHROW float complex clogf_tx ( float complex  z)

A transaction-safe implementation of clogf().

◆ clogl_tx()

PICOTM_NOTHROW long double complex clogl_tx ( long double complex  z)

A transaction-safe implementation of clogl().

◆ conj_tx()

PICOTM_NOTHROW double complex conj_tx ( double complex  z)

A transaction-safe implementation of conj().

◆ conjf_tx()

PICOTM_NOTHROW float complex conjf_tx ( float complex  z)

A transaction-safe implementation of conjf().

◆ conjl_tx()

PICOTM_NOTHROW long double complex conjl_tx ( long double complex  z)

A transaction-safe implementation of conjl().

◆ cpow_tx()

PICOTM_NOTHROW double complex cpow_tx ( double complex  x,
double complex  y 
)

A transaction-safe implementation of cpow().

◆ cpowf_tx()

PICOTM_NOTHROW float complex cpowf_tx ( float complex  x,
float complex  y 
)

A transaction-safe implementation of cpowf().

◆ cpowl_tx()

PICOTM_NOTHROW long double complex cpowl_tx ( long double complex  x,
long double complex  y 
)

A transaction-safe implementation of cpowl().

◆ cproj_tx()

PICOTM_NOTHROW double complex cproj_tx ( double complex  z)

A transaction-safe implementation of cproj().

◆ cprojf_tx()

PICOTM_NOTHROW float complex cprojf_tx ( float complex  z)

A transaction-safe implementation of cprojf().

◆ cprojl_tx()

PICOTM_NOTHROW long double complex cprojl_tx ( long double complex  z)

A transaction-safe implementation of cprojl().

◆ creal_tx()

PICOTM_NOTHROW double creal_tx ( double complex  z)

A transaction-safe implementation of creal().

◆ crealf_tx()

PICOTM_NOTHROW float crealf_tx ( float complex  z)

A transaction-safe implementation of crealf().

◆ creall_tx()

PICOTM_NOTHROW long double creall_tx ( long double complex  z)

A transaction-safe implementation of creall().

◆ csin_tx()

PICOTM_NOTHROW double complex csin_tx ( double complex  z)

A transaction-safe implementation of csin().

◆ csinf_tx()

PICOTM_NOTHROW float complex csinf_tx ( float complex  z)

A transaction-safe implementation of csinf().

◆ csinh_tx()

PICOTM_NOTHROW double complex csinh_tx ( double complex  z)

A transaction-safe implementation of csinh().

◆ csinhf_tx()

PICOTM_NOTHROW float complex csinhf_tx ( float complex  z)

A transaction-safe implementation of csinhf().

◆ csinhl_tx()

PICOTM_NOTHROW long double complex csinhl_tx ( long double complex  z)

A transaction-safe implementation of csinhl().

◆ csinl_tx()

PICOTM_NOTHROW long double complex csinl_tx ( long double complex  z)

A transaction-safe implementation of csinl().

◆ csqrt_tx()

PICOTM_NOTHROW double complex csqrt_tx ( double complex  z)

A transaction-safe implementation of csqrt().

◆ csqrtf_tx()

PICOTM_NOTHROW float complex csqrtf_tx ( float complex  z)

A transaction-safe implementation of csqrtf().

◆ csqrtl_tx()

PICOTM_NOTHROW long double complex csqrtl_tx ( long double complex  z)

A transaction-safe implementation of csqrtl().

◆ ctan_tx()

PICOTM_NOTHROW double complex ctan_tx ( double complex  z)

A transaction-safe implementation of ctan().

◆ ctanf_tx()

PICOTM_NOTHROW float complex ctanf_tx ( float complex  z)

A transaction-safe implementation of ctanf().

◆ ctanh_tx()

PICOTM_NOTHROW double complex ctanh_tx ( double complex  z)

A transaction-safe implementation of ctanh().

◆ ctanhf_tx()

PICOTM_NOTHROW float complex ctanhf_tx ( float complex  z)

A transaction-safe implementation of ctanhf().

◆ ctanhl_tx()

PICOTM_NOTHROW long double complex ctanhl_tx ( long double complex  z)

A transaction-safe implementation of ctanhl().

◆ ctanl_tx()

PICOTM_NOTHROW long double complex ctanl_tx ( long double complex  z)

A transaction-safe implementation of ctanl().

◆ load_cdouble_tx()

static double _Complex load_cdouble_tx ( const double _Complex *  addr)
inlinestatic

Loads a value of type ' double _Complex ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_cfloat_tx()

static float _Complex load_cfloat_tx ( const float _Complex *  addr)
inlinestatic

Loads a value of type ' float _Complex ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_cldouble_tx()

static long double _Complex load_cldouble_tx ( const long double _Complex *  addr)
inlinestatic

Loads a value of type ' long double _Complex ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ privatize_cdouble_tx()

static void privatize_cdouble_tx ( const double _Complex *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' double _Complex '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_cfloat_tx()

static void privatize_cfloat_tx ( const float _Complex *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' float _Complex '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_cldouble_tx()

static void privatize_cldouble_tx ( const long double _Complex *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' long double _Complex '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ store_cdouble_tx()

static void store_cdouble_tx ( double _Complex *  addr,
double _Complex  value 
)
inlinestatic

Stores a value of type ' double _Complex ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_cfloat_tx()

static void store_cfloat_tx ( float _Complex *  addr,
float _Complex  value 
)
inlinestatic

Stores a value of type ' float _Complex ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_cldouble_tx()

static void store_cldouble_tx ( long double _Complex *  addr,
long double _Complex  value 
)
inlinestatic

Stores a value of type ' long double _Complex ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.