102 Dalmatians: Puppies to the Rescue
Decompilation Source Reference | GitLab repository
Loading...
Searching...
No Matches
floating_point.c File Reference
#include "pcdogs/image/globals.h"
#include "pcdogs/image/storage.h"
#include "pcdogs/platform/enums.h"
#include "pcdogs/runtime/constants.h"
#include "pcdogs/runtime/functions.h"
#include "pcdogs/runtime/globals.h"
#include "pcdogs/runtime/types.h"
#include <intrin.h>
#include <math.h>
#include <stdarg.h>
#include <string.h>

Go to the source code of this file.

Macros

#define nullptr   0

Functions

void CRT_InitializeFloatingPoint ()
void CRT_InitFloatFormatDispatch ()
int64_t __ftol_msvc (long double value)
void _setdefaultprecision ()
int32_t CRT_TestFdivBugFallback ()
int32_t CRT_TestPentiumFdivBug ()
void _forcdecpt (char *buffer)
void _cropzeros (char *formatted_string)
int32_t _positive (double const *value)
void __fassign (int32_t flag, void *destination, char const *number)
char * _cftoe (double const *value, char *buffer, int32_t precision, int32_t uppercase_exponent)
char * _cftof (double const *value, char *buffer, int32_t precision)
char * _cftog (double const *value, char *buffer, int32_t precision, int32_t uppercase_exponent)
char * String_FormatScientificFloat (double const *value, char *buffer, int32_t precision, int32_t uppercase_exponent)
char * String_FormatFixedUsingCachedDigits (double const *value, char *buffer, int32_t precision)
char * __cfltcvt (double const *value, char *buffer, int32_t format, int32_t precision, int32_t uppercase_exponent)
uint32_t CRT_control87 (uint32_t new_control, uint32_t mask)
uint32_t CRT_controlfp (uint32_t new_value, uint32_t mask)
uint32_t _cw_to_abstract_cw (uint32_t control_word)
uint32_t _abstract_cw_to_cw (uint32_t abstract_control_word)
int32_t __ld12_is_zero_upper (uint32_t const *value, int32_t start_bit)
int32_t __ld12_increment (uint32_t *value, int32_t bit_index)
int32_t __ld12_round_and_clear (uint32_t *value, int32_t bit_index)
void __ld12_copy (uint32_t *dest, uint32_t const *src)
void __ld12_clear (uint32_t *value)
int32_t __ld12_is_zero (uint32_t const *value)
void __ld12_shr (uint32_t *value, int32_t bit_count)
int32_t __ld12_to_ieee (struct CRT_LD12Fields const *value, void *output, struct CRT_IEEEFormatDescriptor const *format)
int32_t __ld12_to_double (struct CRT_LD12Fields const *value, double *output)
int32_t __ld12_to_float (struct CRT_LD12Fields const *value, float *output)
int32_t __atodbl (double *output, char const *text)
int32_t __atoflt (float *output, char const *text)
char * String_RoundAndCopyDigitsFloat (char *output, int32_t digit_count, struct CRT_FloatConversionRecord *conversion_state)
struct CRT_FloatConversionRecord * __fpmath (double value)
void __double_to_long_double80 (uint16_t *destination, double const *source)
void CRT_AbortFloatSupportNotLoaded ()
int32_t __add_with_overflow_check (uint32_t left, uint32_t right, uint32_t *sum)
void ___add_12 (uint32_t *accumulator, uint32_t const *addend)
void __shl_12byte (uint32_t *value)
void __shr_12byte (uint32_t *value)
void __mtold12 (uint8_t const *digits, uint32_t digit_count, struct CRT_LD12Fields *output)
void __flt_mul (struct CRT_LD12Fields *left_and_result, struct CRT_LD12Fields const *right)
void __flt_power10 (struct CRT_LD12Fields *value, int32_t power, int32_t mult12)
void String_MakeInsertionGap (char *buffer, int32_t insert_count)

Macro Definition Documentation

◆ nullptr

#define nullptr   0

Definition at line 13 of file floating_point.c.

Function Documentation

◆ ___add_12()

void ___add_12 ( uint32_t * accumulator,
uint32_t const * addend )

Definition at line 919 of file floating_point.c.

◆ __add_with_overflow_check()

int32_t __add_with_overflow_check ( uint32_t left,
uint32_t right,
uint32_t * sum )

Definition at line 908 of file floating_point.c.

◆ __atodbl()

int32_t __atodbl ( double * output,
char const * text )

Definition at line 785 of file floating_point.c.

◆ __atoflt()

int32_t __atoflt ( float * output,
char const * text )

Definition at line 796 of file floating_point.c.

◆ __cfltcvt()

char * __cfltcvt ( double const * value,
char * buffer,
int32_t format,
int32_t precision,
int32_t uppercase_exponent )

Definition at line 473 of file floating_point.c.

◆ __double_to_long_double80()

void __double_to_long_double80 ( uint16_t * destination,
double const * source )

Definition at line 858 of file floating_point.c.

◆ __fassign()

void __fassign ( int32_t flag,
void * destination,
char const * number )

Definition at line 231 of file floating_point.c.

◆ __flt_mul()

void __flt_mul ( struct CRT_LD12Fields * left_and_result,
struct CRT_LD12Fields const * right )

Definition at line 995 of file floating_point.c.

◆ __flt_power10()

void __flt_power10 ( struct CRT_LD12Fields * value,
int32_t power,
int32_t mult12 )

Definition at line 1178 of file floating_point.c.

◆ __fpmath()

struct CRT_FloatConversionRecord * __fpmath ( double value)

Definition at line 843 of file floating_point.c.

◆ __ftol_msvc()

int64_t __ftol_msvc ( long double value)

Definition at line 39 of file floating_point.c.

◆ __ld12_clear()

void __ld12_clear ( uint32_t * value)

Definition at line 625 of file floating_point.c.

◆ __ld12_copy()

void __ld12_copy ( uint32_t * dest,
uint32_t const * src )

Definition at line 617 of file floating_point.c.

◆ __ld12_increment()

int32_t __ld12_increment ( uint32_t * value,
int32_t bit_index )

Definition at line 568 of file floating_point.c.

◆ __ld12_is_zero()

int32_t __ld12_is_zero ( uint32_t const * value)

Definition at line 634 of file floating_point.c.

◆ __ld12_is_zero_upper()

int32_t __ld12_is_zero_upper ( uint32_t const * value,
int32_t start_bit )

Definition at line 539 of file floating_point.c.

◆ __ld12_round_and_clear()

int32_t __ld12_round_and_clear ( uint32_t * value,
int32_t bit_index )

Definition at line 596 of file floating_point.c.

◆ __ld12_shr()

void __ld12_shr ( uint32_t * value,
int32_t bit_count )

Definition at line 653 of file floating_point.c.

◆ __ld12_to_double()

int32_t __ld12_to_double ( struct CRT_LD12Fields const * value,
double * output )

Definition at line 771 of file floating_point.c.

◆ __ld12_to_float()

int32_t __ld12_to_float ( struct CRT_LD12Fields const * value,
float * output )

Definition at line 778 of file floating_point.c.

◆ __ld12_to_ieee()

int32_t __ld12_to_ieee ( struct CRT_LD12Fields const * value,
void * output,
struct CRT_IEEEFormatDescriptor const * format )

Definition at line 670 of file floating_point.c.

◆ __mtold12()

void __mtold12 ( uint8_t const * digits,
uint32_t digit_count,
struct CRT_LD12Fields * output )

Definition at line 958 of file floating_point.c.

◆ __shl_12byte()

void __shl_12byte ( uint32_t * value)

Definition at line 932 of file floating_point.c.

◆ __shr_12byte()

void __shr_12byte ( uint32_t * value)

Definition at line 943 of file floating_point.c.

◆ _abstract_cw_to_cw()

uint32_t _abstract_cw_to_cw ( uint32_t abstract_control_word)

Definition at line 524 of file floating_point.c.

◆ _cftoe()

char * _cftoe ( double const * value,
char * buffer,
int32_t precision,
int32_t uppercase_exponent )

Definition at line 241 of file floating_point.c.

◆ _cftof()

char * _cftof ( double const * value,
char * buffer,
int32_t precision )

Definition at line 324 of file floating_point.c.

◆ _cftog()

char * _cftog ( double const * value,
char * buffer,
int32_t precision,
int32_t uppercase_exponent )

Definition at line 406 of file floating_point.c.

◆ _cropzeros()

void _cropzeros ( char * formatted_string)

Definition at line 164 of file floating_point.c.

◆ _cw_to_abstract_cw()

uint32_t _cw_to_abstract_cw ( uint32_t control_word)

Definition at line 509 of file floating_point.c.

◆ _forcdecpt()

void _forcdecpt ( char * buffer)

Definition at line 122 of file floating_point.c.

◆ _positive()

int32_t _positive ( double const * value)

Definition at line 224 of file floating_point.c.

◆ _setdefaultprecision()

void _setdefaultprecision ( )

Definition at line 64 of file floating_point.c.

◆ CRT_AbortFloatSupportNotLoaded()

void CRT_AbortFloatSupportNotLoaded ( )

Definition at line 900 of file floating_point.c.

◆ CRT_control87()

uint32_t CRT_control87 ( uint32_t new_control,
uint32_t mask )

Definition at line 486 of file floating_point.c.

◆ CRT_controlfp()

uint32_t CRT_controlfp ( uint32_t new_value,
uint32_t mask )

Definition at line 502 of file floating_point.c.

◆ CRT_InitFloatFormatDispatch()

void CRT_InitFloatFormatDispatch ( )

Definition at line 27 of file floating_point.c.

◆ CRT_InitializeFloatingPoint()

void CRT_InitializeFloatingPoint ( )

Definition at line 17 of file floating_point.c.

◆ CRT_TestFdivBugFallback()

int32_t CRT_TestFdivBugFallback ( )

Definition at line 71 of file floating_point.c.

◆ CRT_TestPentiumFdivBug()

int32_t CRT_TestPentiumFdivBug ( )

Definition at line 103 of file floating_point.c.

◆ String_FormatFixedUsingCachedDigits()

char * String_FormatFixedUsingCachedDigits ( double const * value,
char * buffer,
int32_t precision )

Definition at line 460 of file floating_point.c.

◆ String_FormatScientificFloat()

char * String_FormatScientificFloat ( double const * value,
char * buffer,
int32_t precision,
int32_t uppercase_exponent )

Definition at line 447 of file floating_point.c.

◆ String_MakeInsertionGap()

void String_MakeInsertionGap ( char * buffer,
int32_t insert_count )

Definition at line 1221 of file floating_point.c.

◆ String_RoundAndCopyDigitsFloat()

char * String_RoundAndCopyDigitsFloat ( char * output,
int32_t digit_count,
struct CRT_FloatConversionRecord * conversion_state )

Definition at line 807 of file floating_point.c.