Movatterモバイル変換


[0]ホーム

URL:


Skip to content

tfm.h

Functions

Name
word32CheckRunTimeFastMath(void )
This function checks the runtime fastmath settings for the maximum size of an integer. It is important when a user is using a wolfCrypt library independently, as the FP_SIZE must match for each library in order for math to work correctly. This check is defined as CheckFastMathSettings(), which simply compares CheckRunTimeFastMath and FP_SIZE, returning 0 if there is a mismatch, or 1 if they match.

Functions Documentation

function CheckRunTimeFastMath

word32 CheckRunTimeFastMath(    void )

This function checks the runtime fastmath settings for the maximum size of an integer. It is important when a user is using a wolfCrypt library independently, as the FP_SIZE must match for each library in order for math to work correctly. This check is defined as CheckFastMathSettings(), which simply compares CheckRunTimeFastMath and FP_SIZE, returning 0 if there is a mismatch, or 1 if they match.

Parameters:

  • none No parameters.

See:CheckRunTimeSettings

Return: FP_SIZE Returns FP_SIZE, corresponding to the max size available for the math library.

Example

if (CheckFastMathSettings() != 1) {return err_sys("Build vs. runtime fastmath FP_MAX_BITS mismatch\n");}// This is converted by the preprocessor to:// if ( (CheckRunTimeFastMath() == FP_SIZE) != 1) {// and confirms that the fast math settings match// the compile time settings

Source code

word32 CheckRunTimeFastMath(void);

Updated on 2026-02-20 at 02:00:33 +0000


[8]ページ先頭

©2009-2026 Movatter.jp