Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
fml::SafeMath Class Reference

#include <safe_math.h>

Public Member Functions

bool overflow_detected () const
 
size_t mul (size_t x, size_t y)
 

Detailed Description

Definition at line 15 of file safe_math.h.

Member Function Documentation

◆ mul()

size_t fml::SafeMath::mul ( size_t  x,
size_t  y 
)

Definition at line 12 of file safe_math.cc.

12 {
13 return sizeof(size_t) == sizeof(uint64_t) ? mul64(x, y) : mul32(x, y);
14}
int32_t x
double y

References x, and y.

Referenced by flutter::APNGImageGenerator::GetPixels(), and flutter::testing::TEST().

◆ overflow_detected()

bool fml::SafeMath::overflow_detected ( ) const
inline

Definition at line 17 of file safe_math.h.

17{ return overflow_detected_; }

Referenced by flutter::APNGImageGenerator::GetPixels(), and flutter::testing::TEST().


The documentation for this class was generated from the following files: