Developer Guide and Reference

ID 767253
Date 10/31/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Type Casting Functions for Floating-Point Numbers

double2float_rd

Description: Converts double to float using round-down mode.

Calling Interface:

float double2float_rd(double x)

double2float_rn

Description: Converts double to float using round-to-nearest-even mode.

Calling Interface:

float double2float_rn(double x)

double2float_ru

Description: Converts double to float using round-up mode.

Calling Interface:

float double2float_ru(double x)

double2float_rz

Description: Converts double to float using round-towards-zero mode.

Calling Interface:

float double2float_rz(double x)

double2int_rd

Description: Converts double to signed int using round-down mode.

Calling Interface:

int double2int_rd(double x)

double2int_rn

Description: Converts double to signed int using round-to-nearest-even mode.

Calling Interface:

int double2int_rn(double x)

double2int_ru

Description: Converts double to signed int using round-up mode.

Calling Interface:

int double2int_ru(double x)

double2int_rz

Description: Converts double to signed int using round-towards-zero mode.

Calling Interface:

int double2int_rz(double x)

double2ll_rd

Description: Converts double to 64-bit signed int using round-down mode.

Calling Interface:

long long double2ll_rd(double x)

double2ll_rn

Description: Converts double to 64-bit signed int using round-to-nearest-even mode.

Calling Interface:

long long double2ll_rn(double x)

double2ll_ru

Description: Converts double to 64-bit signed int using round-up mode.

Calling Interface:

long long double2ll_ru(double x)

double2ll_rz

Description: Converts double to 64-bit signed int using round-towards-zero mode.

Calling Interface:

long long double2ll_rz(double x)

double2uint_rd

Description: Converts double to unsigned int using round-down mode.

Calling Interface:

unsigned int double2uint_rd(double x)

double2uint_rn

Description: Converts double to unsigned int using round-to-nearest-even mode.

Calling Interface:

unsigned int double2uint_rn(double x)

double2uint_ru

Description: Converts double to unsigned int using round-up mode.

Calling Interface:

unsigned int double2uint_ru(double x)

double2uint_rz

Description: Converts double to unsigned int using round-towards-zero mode.

Calling Interface:

unsigned int double2uint_rz(double x)

double2ull_rd

Description: Converts double to unsigned 64-bit int using round-down mode.

Calling Interface:

unsigned long long double2ull_rd(double x)

double2ull_rn

Description: Converts double to unsigned 64-bit int using round-nearest-even mode.

Calling Interface:

unsigned long long double2ull_rn(double x)

double2ull_ru

Description: Converts double to unsigned 64-bit int using round-up mode.

Calling Interface:

unsigned long long double2ull_ru(double x)

double2ull_rz

Description: Converts double to unsigned 64-bit int using round-towards-zero mode.

Calling Interface:

unsigned long long double2ull_rz(double x)

float2int_rd

Description: Converts float to signed int using round-down mode.

Calling Interface:

int float2int_rd(float x)

float2int_rn

Description: Converts float to signed int using round-to-nearest-even mode.

Calling Interface:

int float2int_rn(float x)

float2int_ru

Description: Converts float to signed int using round-up mode.

Calling Interface:

int float2int_ru(float x)

float2int_rz

Description: Converts float to signed int using round-towards-zero mode.

Calling Interface:

int float2int_rz(float x)

float2ll_rd

Description: Converts float to signed 64-bit int using round-down mode.

Calling Interface:

long long float2ll_rd(float x)

float2ll_rn

Description: Converts float to signed 64-bit int using round-to-nearest-even mode.

Calling Interface:

long long float2ll_rn(float x)

float2ll_ru

Description: Converts float to signed 64-bit int using round-up mode.

Calling Interface:

long long float2ll_ru(float x)

float2ll_rz

Description: Converts float to signed 64-bit int using round-towards-zero mode.

Calling Interface:

long long float2ll_rz(float x)

float2uint_rd

Description: Converts float to unsigned int using round-down mode.

Calling Interface:

unsigned int float2uint_rd(float x)

float2uint_rn

Description: Converts float to unsigned int using round-to-nearest-even mode.

Calling Interface:

unsigned int float2uint_rn(float x)

float2uint_ru

Description: Converts float to unsigned int using round-up mode.

Calling Interface:

unsigned int float2uint_ru(float x)

float2uint_rz

Description: Converts float to unsigned int using round-towards-zero mode.

Calling Interface:

unsigned int float2uint_rz(float x)

float2ull_rd

Description: Converts float to unsigned 64-bit int using round-down mode.

Calling Interface:

unsigned long long float2ull_rd(float x)

float2ull_rn

Description: Converts float to unsigned 64-bit int using round-to-nearest-even mode.

Calling Interface:

unsigned long long float2ull_rn(float x)

float2ull_ru

Description: Converts float to unsigned 64-bit int using round-up mode.

Calling Interface:

unsigned long long float2ull_ru(float x)

float2ull_rz

Description: Converts float to unsigned 64-bit int using round-towards-zero mode.

Calling Interface:

unsigned long long float2ull_rz(float x)

int2double_rn

Description: Converts signed int to double using round-to-nearest-even mode.

Calling Interface:

double int2double_rn(int x)

int2float_rd

Description: Converts signed int to float using round-down mode.

Calling Interface:

float int2float_rd(int x)

int2float_rn

Description: Converts signed int to float using round-to-nearest-even mode.

Calling Interface:

float int2float_rn(int x)

int2float_ru

Description: Converts signed int to float using round-up mode.

Calling Interface:

float int2float_ru(int x)

int2float_rz

Description: Converts signed int to float using round-towards-zero mode.

Calling Interface:

float int2float_rz(int x)

ll2double_rd

Description: Converts signed 64-bit int to double using round-down mode.

Calling Interface:

double ll2double_rd(long long x)

ll2double_rn

Description: Converts signed 64-bit int to double using round-to-nearest-even mode.

Calling Interface:

double ll2double_rn(long long x)

ll2double_ru

Description: Converts signed 64-bit int to double using round-up mode.

Calling Interface:

double ll2double_ru(long long x)

ll2double_rz

Description: Converts signed 64-bit int to double using round-towards-zero mode.

Calling Interface:

double ll2double_rz(long long x)

ll2float_rd

Description: Converts signed 64-bit int to float using round-down mode.

Calling Interface:

float ll2float_rd(long long x)

ll2float_rn

Description: Converts signed 64-bit int to float using round-to-nearest-even mode.

Calling Interface:

float ll2float_rn(long long x)

ll2float_ru

Description: Converts signed 64-bit int to float using round-up mode.

Calling Interface:

float ll2float_ru(long long x)

ll2float_rz

Description: Converts signed 64-bit int to float using round-towards-zero mode.

Calling Interface:

float ll2float_rz(long long x)

uint2double_rn

Description: Converts unsigned int to double using round-to-nearest-even mode.

Calling Interface:

double uint2double_rn(unsigned int x)

uint2float_rd

Description: Converts unsigned int to float using round-down mode.

Calling Interface:

float uint2float_rd(unsigned int x)

uint2float_rn

Description: Converts unsigned int to float using round-to-nearest-even mode.

Calling Interface:

float uint2float_rn(unsigned int x)

uint2float_ru

Description: Converts unsigned int to float using round-up mode.

Calling Interface:

float uint2float_ru(unsigned int x)

uint2float_rz

Description: Converts unsigned int to float using round-towards-zero mode.

Calling Interface:

float uint2float_rz(unsigned int x)

ull2float_rd

Description: Converts unsigned 64-bit int to float using round-down mode.

Calling Interface:

float ull2float_rd(unsigned long long x)

ull2float_rn

Description: Converts unsigned 64-bit int to float using round-to-nearest-even mode.

Calling Interface:

float ull2float_rn(unsigned long long x)

ull2float_ru

Description: Converts unsigned 64-bit int to float using round-up mode.

Calling Interface:

float ull2float_ru(unsigned long long x)

ull2float_rz

Description: Converts unsigned 64-bit int to float using round-towards-zero mode.

Calling Interface:

float ull2float_rz(unsigned long long x)

ull2double_rd

Description: Converts unsigned 64-bit int to double using round-down mode.

Calling Interface:

double ull2double_rd(unsigned long long x)

ull2double_rn

Description: Converts unsigned 64-bit int to double using round-to-nearest-even mode.

Calling Interface:

double ull2double_rn(unsigned long long x)

ull2double_ru

Description: Converts unsigned 64-bit int to double using round-up mode.

Calling Interface:

double ull2double_ru(unsigned long long x)

ull2double_rz

Description: Converts unsigned 64-bit int to double using round-towards-zero mode.

Calling Interface:

double ull2double_rz(unsigned long long x)

double2hiint

Description: Interprets high 32 bits of a double value as a signed int.

Calling Interface:

int double2hiint(double x)

double2loint

Description: Interprets low 32 bits of a double value as a signed int.

Calling Interface:

int double2loint(double x)

double_as_longlong

Description: Interprets bits of a double value as signed 64-bit int.

Calling Interface:

long long double_as_longlong(double x)

float_as_int

Description: Interprets bits of a float value as signed int.

Calling Interface:

int float_as_int(float x)

float_as_uint

Description: Interprets bits of a float value as unsigned int.

Calling Interface:

unsigned int float_as_uint(float x)

hiloint2double

Description: Interprets high and low 32-bit integer values as a double.

Calling Interface:

double hiloint2double(int hi, int log)

int_as_float

Description: Interprets 32 bits of a int as float.

Calling Interface:

float int_as_float(int x)

longlong_as_double

Description: Interprets 64 bits of a signed 64-bit int as a double value.

Calling Interface:

double longlong_as_double(long long x)

uint_as_float

Description: Interprets 32 bits of an unsigned int as a float value.

Calling Interface:

float uint_as_float(unsigned int x)