MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / CheckDoubleMultipleOf

Method CheckDoubleMultipleOf

rapidjson/schema.h:1188–1195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1186 }
1187
1188 bool CheckDoubleMultipleOf(Context& context, double d) const {
1189 double a = std::abs(d), b = std::abs(multipleOf_.GetDouble());
1190 double q = std::floor(a / b);
1191 double r = a - q * b;
1192 if (r > 0.0)
1193 RAPIDJSON_INVALID_KEYWORD_RETURN(GetMultipleOfString());
1194 return true;
1195 }
1196
1197 struct Property {
1198 Property() : schema(), dependenciesSchema(), dependenciesValidatorIndex(), dependencies(), required(false) {}

Callers

nothing calls this directly

Calls 1

GetDoubleMethod · 0.80

Tested by

no test coverage detected