mirror of
https://git.coom.tech/drummyfish/raycastlib.git
synced 2024-11-21 20:29:59 +01:00
Fix sqrt data types
This commit is contained in:
parent
cdfefa6c99
commit
680e5b23a8
1 changed files with 5 additions and 4 deletions
|
@ -455,12 +455,13 @@ uint16_t sqrtInt(Unit value)
|
||||||
{
|
{
|
||||||
profileCall(sqrtInt);
|
profileCall(sqrtInt);
|
||||||
|
|
||||||
Unit result = 0;
|
|
||||||
Unit a = value;
|
|
||||||
|
|
||||||
#ifdef RAYCAST_TINY
|
#ifdef RAYCAST_TINY
|
||||||
uint32_t b = 1u << 14;
|
uint16_t result = 0;
|
||||||
|
uint16_t a = value;
|
||||||
|
uint16_t b = 1u << 14;
|
||||||
#else
|
#else
|
||||||
|
uint32_t result = 0;
|
||||||
|
uint32_t a = value;
|
||||||
uint32_t b = 1u << 30;
|
uint32_t b = 1u << 30;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue