Sync llcommon with Alchemy a bit.
llmath::llround->ll_round LL_ICC->LL_INTELC Add llpredicate Add LL_CPP11 macro Remove llhash Update llinitparam, llsd and all relatives of it.
This commit is contained in:
@@ -52,7 +52,7 @@ inline U16 F32_to_U16_ROUND(F32 val, F32 lower, F32 upper)
|
||||
val /= (upper - lower);
|
||||
|
||||
// round the value. Sreturn the U16
|
||||
return (U16)(llmath::llround(val*U16MAX));
|
||||
return (U16)(ll_round(val*U16MAX));
|
||||
}
|
||||
|
||||
|
||||
@@ -92,7 +92,7 @@ inline U8 F32_to_U8_ROUND(F32 val, F32 lower, F32 upper)
|
||||
val /= (upper - lower);
|
||||
|
||||
// return the rounded U8
|
||||
return (U8)(llmath::llround(val*U8MAX));
|
||||
return (U8)(ll_round(val*U8MAX));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user