mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
inthi_rintf
git-svn-id: https://svn.eduke32.com/eduke32@6378 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
715d2ec25a
commit
a782247eac
2 changed files with 2 additions and 1 deletions
|
@ -25,6 +25,7 @@ typedef int64_t coord_t;
|
||||||
// but where no other adverse effect (except being undefined behavior,
|
// but where no other adverse effect (except being undefined behavior,
|
||||||
// obviously) is expected to result:
|
// obviously) is expected to result:
|
||||||
typedef int64_t inthi_t;
|
typedef int64_t inthi_t;
|
||||||
|
#define inthi_rintf llrintf
|
||||||
|
|
||||||
#if !defined(NOASM) && (defined(_MSC_VER) || (defined(__GNUC__) && defined(__i386__)))
|
#if !defined(NOASM) && (defined(_MSC_VER) || (defined(__GNUC__) && defined(__i386__)))
|
||||||
|
|
||||||
|
|
|
@ -1865,7 +1865,7 @@ static WSHELPER_DECL void calc_vplcinc_wall(uint32_t *vplc, int32_t *vinc, inthi
|
||||||
#ifdef HIGH_PRECISION_SPRITE
|
#ifdef HIGH_PRECISION_SPRITE
|
||||||
static WSHELPER_DECL void calc_vplcinc_sprite(uint32_t *vplc, int32_t *vinc, int32_t x, int32_t y1v)
|
static WSHELPER_DECL void calc_vplcinc_sprite(uint32_t *vplc, int32_t *vinc, int32_t x, int32_t y1v)
|
||||||
{
|
{
|
||||||
inthi_t const tmpvinc = Blrintf(swallf[x]);
|
inthi_t const tmpvinc = inthi_rintf(swallf[x]);
|
||||||
inthi_t const tmpvplc = globalzd + tmpvinc*(y1v-globalhoriz+1);
|
inthi_t const tmpvplc = globalzd + tmpvinc*(y1v-globalhoriz+1);
|
||||||
|
|
||||||
*vinc = tmpvinc;
|
*vinc = tmpvinc;
|
||||||
|
|
Loading…
Reference in a new issue