[core] irrt: Minor reformat

This commit is contained in:
David Mak 2025-01-02 15:28:28 +08:00
parent 2f0847d77b
commit 1ffe2fcc7f
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#pragma once
#include "irrt/int_types.hpp"
namespace {
// adapted from GNU Scientific Library: https://git.savannah.gnu.org/cgit/gsl.git/tree/sys/pow_int.c
// need to make sure `exp >= 0` before calling this function

View File

@ -5,7 +5,7 @@
namespace {
template<typename SizeT>
bool __nac3_str_eq_impl(const char* str1, SizeT len1, const char* str2, SizeT len2) {
if (len1 != len2){
if (len1 != len2) {
return 0;
}
return __builtin_memcmp(str1, str2, static_cast<SizeT>(len1)) == 0;