comparison src/console/Nes_Apu.h @ 2238:240bdf781ad0

eliminate warnings on x86_64.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Mon, 17 Dec 2007 18:04:53 +0900
parents fb513e10174e
children
comparison
equal deleted inserted replaced
2237:c4cd92ff8d53 2238:240bdf781ad0
76 void irq_notifier( void (*callback)( void* user_data ), void* user_data = NULL ); 76 void irq_notifier( void (*callback)( void* user_data ), void* user_data = NULL );
77 77
78 // Get time that APU-generated IRQ will occur if no further register reads 78 // Get time that APU-generated IRQ will occur if no further register reads
79 // or writes occur. If IRQ is already pending, returns irq_waiting. If no 79 // or writes occur. If IRQ is already pending, returns irq_waiting. If no
80 // IRQ will occur, returns no_irq. 80 // IRQ will occur, returns no_irq.
81 enum { no_irq = LONG_MAX / 2 + 1 }; 81 enum { no_irq = INT_MAX / 2 + 1 };
82 enum { irq_waiting = 0 }; 82 enum { irq_waiting = 0 };
83 nes_time_t earliest_irq( nes_time_t ) const; 83 nes_time_t earliest_irq( nes_time_t ) const;
84 84
85 // Count number of DMC reads that would occur if 'run_until( t )' were executed. 85 // Count number of DMC reads that would occur if 'run_until( t )' were executed.
86 // If last_read is not NULL, set *last_read to the earliest time that 86 // If last_read is not NULL, set *last_read to the earliest time that