MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / least_common_multiple

Function least_common_multiple

servers/rendering/rendering_device.cpp:1415–1421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1413}
1414
1415uint32_t least_common_multiple(uint32_t a, uint32_t b) {
1416 if (a == 0 || b == 0) {
1417 return 0;
1418 }
1419
1420 return (a / greatest_common_denominator(a, b)) * b;
1421}
1422
1423uint32_t RenderingDevice::_texture_alignment(Texture *p_texture) const {
1424 uint32_t alignment = get_compressed_image_format_block_byte_size(p_texture->format);

Callers 1

_texture_alignmentMethod · 0.85

Calls 1

Tested by

no test coverage detected