mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
34010gfx.c: Work around clang shift overflow warnings; silly fix... (nw)
This commit is contained in:
parent
54db017d7b
commit
062528e4a5
@ -6,9 +6,6 @@ CCOMFLAGS += \
|
||||
# caused by obj/sdl64d/emu/cpu/tms57002/tms57002.inc
|
||||
CCOMFLAGS += -Wno-self-assign-field
|
||||
|
||||
# caused by src/emu/cpu/tms34010/34010gfx.c
|
||||
CCOMFLAGS += -Wno-shift-count-overflow
|
||||
|
||||
# TODO: needs to use $(CC)
|
||||
TEST_CLANG := $(shell clang --version)
|
||||
|
||||
|
@ -1428,10 +1428,10 @@ if ((daddr & (BITS_PER_PIXEL - 1)) != 0) osd_printf_debug("PIXBLT_R%d with odd d
|
||||
dstword = (dstword & ~dstmask) | pixel;
|
||||
|
||||
/* update the source */
|
||||
srcmask >>= BITS_PER_PIXEL;
|
||||
srcmask = srcmask >> BITS_PER_PIXEL;
|
||||
|
||||
/* update the destination */
|
||||
dstmask >>= BITS_PER_PIXEL;
|
||||
dstmask = dstmask >> BITS_PER_PIXEL;
|
||||
}
|
||||
|
||||
/* write the result */
|
||||
@ -1470,10 +1470,10 @@ if ((daddr & (BITS_PER_PIXEL - 1)) != 0) osd_printf_debug("PIXBLT_R%d with odd d
|
||||
dstword = (dstword & ~dstmask) | pixel;
|
||||
|
||||
/* update the source */
|
||||
srcmask >>= BITS_PER_PIXEL;
|
||||
srcmask = srcmask >> BITS_PER_PIXEL;
|
||||
|
||||
/* update the destination */
|
||||
dstmask >>= BITS_PER_PIXEL;
|
||||
dstmask = dstmask >> BITS_PER_PIXEL;
|
||||
}
|
||||
|
||||
/* write the result */
|
||||
@ -1508,10 +1508,10 @@ if ((daddr & (BITS_PER_PIXEL - 1)) != 0) osd_printf_debug("PIXBLT_R%d with odd d
|
||||
dstword = (dstword & ~dstmask) | pixel;
|
||||
|
||||
/* update the source */
|
||||
srcmask >>= BITS_PER_PIXEL;
|
||||
srcmask = srcmask >> BITS_PER_PIXEL;
|
||||
|
||||
/* update the destination */
|
||||
dstmask >>= BITS_PER_PIXEL;
|
||||
dstmask = dstmask >> BITS_PER_PIXEL;
|
||||
}
|
||||
|
||||
/* write the result */
|
||||
@ -1669,7 +1669,7 @@ void FUNCTION_NAME(tms340x0_device::pixblt_b)(int dst_is_linear)
|
||||
}
|
||||
|
||||
/* update the destination */
|
||||
dstmask <<= BITS_PER_PIXEL;
|
||||
dstmask = dstmask << BITS_PER_PIXEL;
|
||||
}
|
||||
|
||||
/* write the result */
|
||||
@ -1705,7 +1705,7 @@ void FUNCTION_NAME(tms340x0_device::pixblt_b)(int dst_is_linear)
|
||||
}
|
||||
|
||||
/* update the destination */
|
||||
dstmask <<= BITS_PER_PIXEL;
|
||||
dstmask = dstmask << BITS_PER_PIXEL;
|
||||
}
|
||||
|
||||
/* write the result */
|
||||
@ -1738,7 +1738,7 @@ void FUNCTION_NAME(tms340x0_device::pixblt_b)(int dst_is_linear)
|
||||
}
|
||||
|
||||
/* update the destination */
|
||||
dstmask <<= BITS_PER_PIXEL;
|
||||
dstmask = dstmask << BITS_PER_PIXEL;
|
||||
}
|
||||
|
||||
/* write the result */
|
||||
@ -1869,7 +1869,7 @@ void FUNCTION_NAME(tms340x0_device::fill)(int dst_is_linear)
|
||||
dstword = (dstword & ~dstmask) | pixel;
|
||||
|
||||
/* update the destination */
|
||||
dstmask <<= BITS_PER_PIXEL;
|
||||
dstmask = dstmask << BITS_PER_PIXEL;
|
||||
}
|
||||
|
||||
/* write the result */
|
||||
@ -1896,7 +1896,7 @@ void FUNCTION_NAME(tms340x0_device::fill)(int dst_is_linear)
|
||||
dstword = (dstword & ~dstmask) | pixel;
|
||||
|
||||
/* update the destination */
|
||||
dstmask <<= BITS_PER_PIXEL;
|
||||
dstmask = dstmask << BITS_PER_PIXEL;
|
||||
}
|
||||
|
||||
/* write the result */
|
||||
@ -1920,7 +1920,7 @@ void FUNCTION_NAME(tms340x0_device::fill)(int dst_is_linear)
|
||||
dstword = (dstword & ~dstmask) | pixel;
|
||||
|
||||
/* update the destination */
|
||||
dstmask <<= BITS_PER_PIXEL;
|
||||
dstmask = dstmask << BITS_PER_PIXEL;
|
||||
}
|
||||
|
||||
/* write the result */
|
||||
|
Loading…
Reference in New Issue
Block a user